If your app has  a standard usage of phrases, you can place a file in
that translates a tag into a particular language phrase.



if submit_tag_selection == 'english':
     submit = 'Submit'
if submit_tag_selection == 'english':
     submit = 'Soumettre'

Of course this could be done without the if, you would just translate
the normal selections within a file with the commonly used phrases in
the app, and substitute it within a parse for:

x = open('translate_file_french', 'r')
for line in x:
     if line.split('=')[0] == 'Submit':
           print '%s'   %   (line.split('=')[1])

'Soumettre'

*Untested, but should work


-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to