gettext is the way to go. And there are plenty of node.js modules that support gettext files.
 
All node.js modules (except native ones) are able to work in the browser. For example, browserify can help with this.
 
So this is good way to solve it. Pick gettext library, write .mo/.po files on the server-side, and after that just pack it all into one big _javascript_ file. I think it should work.
 
 
13.02.2014, 08:01, "Fabio Caritas Barrionuevo da Luz" <[email protected]>:
Hello,
This is the largest community of users of technologies derived from _javascript_ I know, so I thought it is the best place to get help.
 
I would like to help you to find the best solution for this problem.
 
I would like to translate "learnGitBranching"[1] to the my native language, Brazilian Portuguese.
I'm not a developer of "learnGitBranching".
Knowledge of _javascript_ and NodeJS is extremely small.
 
The "learnGitBranching"[1] runs entirely on the client side.
At the moment, the translation is being done as described in this file:
 
 
This way works, but each new translation results in a large amount of code modification ie it is difficult to maintain.
 
It would be cool something the developer to write in English, and it generates a file in GNU Gettext format[2] or other format[3] that is simple to translate with Transifex.com[4] plataform.
 
How it works only on the client side, I think something like http://slexaxton.github.io/Jed/ would not be the best solution.
Since this project is not aimed at profit, only the client side is good, because the cost of hosting static files have an incredibly lower cost
 
I created an issue[5] on the project page. 
 
 
 
 

 

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to