How to generate translation
Forum » Wikidot version 1 / Talk » How to generate translation
started by: LMZLMZ
on: 1202495456|%e %b %Y, %H:%M %Z|agohover
number of posts: 3
rss icon RSS: new posts
summary:
how to do it?!
How to generate translation
LMZLMZ 1202495456|%e %b %Y, %H:%M %Z|agohover

what i've done:
from wikidot root:

$ php lib/ozone/bin/tsmarty2c.php templates > /tmp/lang.c

i got this: http://dpaste.com/hold/34343/
what i need do next?

my version: wikidot1 revision At revision 12.

last edited on 1202549807|%e %b %Y, %H:%M %Z|agohover by LMZ + show more
unfold How to generate translation by LMZLMZ, 1202495456|%e %b %Y, %H:%M %Z|agohover
Re: How to generate translation
LMZLMZ 1202549967|%e %b %Y, %H:%M %Z|agohover

next i've done:

$ xgettext --add-comments lang.c

got this: http://dpaste.com/hold/34451/
know i need to translate like this:
msgid "fold"
msgstr "fold_in_some language"

?!
unfold Re: How to generate translation by LMZLMZ, 1202549967|%e %b %Y, %H:%M %Z|agohover
Re: How to generate translation
michal frackowiakmichal frackowiak 1202552433|%e %b %Y, %H:%M %Z|agohover

Hi,

the translation framework is not working properly at the moment in the open source edition. However I have just committed a new revision that at leasts fixes the .pot creation from all .php and .tpl files.
You should run the

./bin/generate_po.sh

when being in the wikidot root directory.

michal

unfold Re: How to generate translation by michal frackowiakmichal frackowiak, 1202552433|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License