|
From: shane <sh...@lo...> - 2006-07-05 20:26:36
|
Another possible alternative way to do it -
declare the language in your data template.
ie
cp themes/slashcode/templates/data\;misc\;defaults themes/=20
slashcode_CN/templates/.
edit the themes/slashcode_CN/templates/.data\;misc\;default
change language to zh_CN
then add a case statement
[% CASE 'button_createnew' %]
Create a new
[% CASE 'button_preview' %]
Preview
[% CASE 'button_edit' %]
Edit
[% CASE 'button_save' %]
Save
[% CASE 'button_submit' %]
Submit
then in your templates something like such
<input type=3D"submit" name=3D"save" value=3D"[% button_save %]">
If you did it like this, you'd just have to create the data templates =20=
for each language. if you combined it w/ the JS then it could work =20
site-wide I'd think.
Shane
On Jul 5, 2006, at 3:44 PM, Jesse Lee wrote:
> We've changed lang field 'en_US' to 'zh_CN' in all templates. But =20
> I'm not sure this field can take what effect. It seems en_US will =20
> work well in Chinese Language.
>
> The button word is a problem. My partner has given three solutions.
>
> 1, Using JS to control in the template.
> e.g.
> <input type=3D"submit" value=3D"=E5=9B=9E=E5=A4=8D" =
onclick=3D"document.getElementById=20
> ('op').value=3D'reply'">
> <input type=3D"hidden" value=3D"" name=3D"op" id=3D"op">
>
> 2, Change 'op' to other words, then parsed using CGI.
> e.g.
> <input type=3D"submit" value=3D"=E5=9B=9E=E5=A4=8D" name=3D"op__reply">
>
> 3, Changing corresponding string in the CGI to Chinese words. This =20
> way maybe is not a good habits.
>
> Finally we decided to use first way, use JS to control and we've =20
> tested, works well with Firefox 1.5 and IE6. But we haven't make =20
> changes on those button yet. We'll do that later.
>
> Btw, site is now down, server problem, be back soon.
>
> On 7/6/06, shane < sh...@lo...> wrote:
> On Jul 4, 2006, at 2:50 PM, Jesse Lee wrote:
>
>> Thanks for your replies.
>>
>> There are some changes, But we haven't sorted them out. Also the =20
>> Chinese theme hasn't been finished yet.
>> We've planed to release a UTF-8 Chinese Version of Slash. Lots of =20
>> things to do, except above mentioned, there are some =20
>> documentations such as Chinese install guide, Chinese FAQ, etc.
>> When we are done these, we will post the code changes and other =20
>> stuff to this list and Slashcode.com.
>>
>> Please give us some time.
>>
>> Jesse
>> On 7/3/06, Jamie McCarthy < ja...@mc...> wrote:
>> jes...@gm... (Jesse Lee) writes:
>>
>> > Original slash doesn't support other languages other than
>> > English, especially some codes of East Asian Languages such as
>> > Chinese and Japanese. We don't think i18n/l10n is on you guys'
>> > development agenda. We have modified code, now slash can natively
>> > run on UTF8 based Chinese language environment without problem.
>>
>> No, it hasn't been on our agenda, unfortunately. I'm very
>> interested in incorporating your changes back into our code if it
>> can be done without turning things upside down for us. If so,
>> that might make future upgrades for you go more smoothly.
>>
>> > When we finish, we would like to let developers at slashcode.com
>> > know. You are welcome to include this utf8 Simplified Chinese
>> > language packs and database files in your future releases.
>>
>> Please do let us know (on this mailing list, if you like). And
>> congratulations on getting it all working.
>> --
>> Jamie McCarthy
>> http://mccarthy.vg/
>> ja...@mc...
>
>
> Did you by chance attempt to make use of the "language" field =20
> within the templates?
>
> ie
>
> __lang__
> en_US
>
>
> I'm also curious as to how you handled the form submission buttons. =20=
> Some of them, if memory serves, are hard-coded-ops.
>
> Congrats on the work!
>
> Shane
>
>
>
>
> Using Tomcat but need to do more? Need to support web services, =20
> security?
> Get stuff done quickly with pre-integrated technology to make your =20
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache =20
> Geronimo
> http://sel.as-us.falkag.net/sel?=20
> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642
> _______________________________________________
> Slashcode-general mailing list
> Sla...@li...
> https://lists.sourceforge.net/lists/listinfo/slashcode-general
|