Discussion:
[Phpslash-devel] How to translate
Tigran
2005-06-21 18:44:12 UTC
Permalink
Hello,

I'm trying to translate PHPSlash into Armenian. I have copied the en.php
into hy.php file and I know I'm suppose to type the translated text in it.
I don't know how to type the translated text. Do I just change the font in
my computer and start typing in Armenian? I tried for some reason it didn't
work.
How do I make sure I'm typing in UTF-8?

Test url is www.usanogh.com/articles2

Thanks
--Tigran
Peter Cruickshank
2005-06-21 19:44:25 UTC
Permalink
Mmm, not sure PSL will work out the box with non-latin alphabets.

Things to think about:
- The template needs to have charset=utf8 meta tag added so the browser
knows what it's looking at
- You need to make sure that webserver isnt sending the wrong charset
info (many apache installations set it as some western charset - I
can't remember the apache tag name right now, sorry)
- You need to make sure that the MySql tables have the correct charset
and collation values set for the text fields

And then there's the text processing side of things - on your website,
it looks like PSL is applying htmlspecial chars irrespective of
charsets.

As for saving UTF-8, that should be an option in your editor. What
OS/Editor are you using?

If you want to work with a PSL-based app, it might be worth looking at
Back-End <www.back-end.org>: we reworked it last year to deal with
Persian, which involved resolving many of these issues (and
right-to-left text too). Back-End is multilingual and allows explicit
definition of charsets for each language.

Not good news maybe, but HTH

Peter
Post by Tigran
Hello,
I'm trying to translate PHPSlash into Armenian. I have copied the
en.php into hy.php file and I know I'm suppose to type the translated
text in it. I don't know how to type the translated text. Do I just
change the font in my computer and start typing in Armenian? I tried
for some reason it didn't work.
How do I make sure I'm typing in UTF-8?
Test url is www.usanogh.com/articles2
Thanks
--Tigran
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Phpslash-devel mailing list
https://lists.sourceforge.net/lists/listinfo/phpslash-devel
Luis M
2005-06-21 22:26:43 UTC
Permalink
Post by Tigran
Hello,
I'm trying to translate PHPSlash into Armenian. I have copied the en.php
into hy.php file and I know I'm suppose to type the translated text in it.
I don't know how to type the translated text. Do I just change the font in
my computer and start typing in Armenian? I tried for some reason it didn't
work.
How do I make sure I'm typing in UTF-8?
Test url is www.usanogh.com/articles2
You should put:

Content-Language = "en-us"
Content-Type = "text/html; charset=UTF-8"
Content-Style-Type = "text/css"

In your config.ini.php file so that phpslash puts the right stuff in
the META tags.

You can open the .php file with any text editor that supports UTF8
(like Gedit or Gvim) and make sure your locate is setup properly. In
my case i do:

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
gvim foo.php

When you are done with the translation. just attach it to an email and
fire it to phpslash-devel. So we can include it in phpslash.

Hope that helps.
--
----)(-----
Luis M
System Administrator
Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html
Loading...