easy way to translate output project to multi languages site

easy way to translate output project to multi languages site

Postby ghasem » Tue May 26, 2009 10:10 pm

easy way to translate output project to multi languages site

first change lang.xml structure
---------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<aspmaker.language date="2008/12/8" version="7.1.0" desc="english template" author="e.World Technology Ltd.">
<phrase id="ActionDeleted" value="Deleted"/>
<phrase id="ActionInserted" value="Inserted"/>
<phrase id="ActionInsertedGridAdd" value="Inserted (Grid-Add)"/>
<phrase id="ActionUpdated" value="Updated"/>
...
<phrase id="AND" value="and"/>
<phrase id="OR" value="or"/>
</aspmaker.language>
---------------------------------------------------------------------------------------------------


change it to this structure: (by some simlpe find and replace command!)
---------------------------------------------------------------------------------------------------
<%
ActionDeleted="Deleted"
ActionInserted="Inserted"
ActionInsertedGridAdd="Inserted (Grid-Add)"
ActionUpdated="Updated"
...
lAND="and"
lOR="or"
%>
---------------------------------------------------------------------------------------------------


and save it as ASP file in output project
and include it in header.asp:
<!--#include file="lang.asp"-->


then in template folder open all asp files and change some text

change all text with this format:
<!--##@SomeText##-->
to:
<%=SomeText%>

after user generate project, he can change one pharse in lang.asp files and see chages in all files and he add multi language site!

it is good and easy way and if u add this futures to asp maker it will more powerful.

(i can do it manually but i have a problem when i want to replace <!--##@SomeText##--> with <%=SomeText%>
in step1 i replace <!--##@ with <%=
in step2 i can not replace ##--> with %> )
ghasem
 

Re: easy way to translate output project to multi languages site

Postby mazyad » Wed Aug 26, 2009 3:54 am

In order to support right to left languages such as Arabic, Urdu, Hebrew, Farsi, ..etc., <HTML> has to include dir=RTL or dir=LTR option in the language file so that even mideast and asian language can easily be supported.
mazyad
 

Re: easy way to translate output project to multi languages site

Postby neeli » Sun Aug 30, 2009 5:51 pm

hi

If aspm nativly support multilanguage then its best option others are not good.

FYI : I already create a multilangage site in aspm so I asking solution built in aspm others solution are just time consuming
neeli
 


Return to Feature Requests (ASPMaker)