Better to use multiple language files or 1?

From your experience, is it better to use a single language file or several smaller langauge files for each language in a PHP project using the gettext extension? I’m not even sure if it is possible to use several files, it’s difficult for me to test, since the server caches language files.

I deal with several languages ​​on a social networking site, so far only a registration page, which is about 1 out of 200 pages, and it has 35 text lines for translation, so the language file for each language will be really big, so I thought maybe perhaps it would be better to make different language files for different pages or perhaps sections, such as section sections of sections of sections and sections of a blog, but if it does not matter, I would not waste time creating several smaller files for each language,

I understand that each situation is different, and the only real answer is to check it out, but I hope to avoid it this time and just get some opponents of people more experienced, this is my first time using gettext, thanks

+5
source share
4 answers

I will have a module based on language files. With gettext you need to specify the locale for each language. It is best to have separate .po / .mo files for each module or large parts of your site.

It's my opinion.: -)

+4
source

I usually automate the process and have several languages ​​in several files using the database for editing the site (using a simple db search). This allows me to hire translators to log in and check the current translation easily. Deploying for production then simply turns the database into a set of language files.

+2
source

, , .

, , , , , .

, . Frameworks ​​, Dashcode, Symfony, Zend .. xliff- xliff, , .

0

- , .

String, - basecamp . . , , . PHP (), PHP (define), po, yaml, ini .strings.

String - . , , - , History, .

In any case, enough sales! Check it out at http://mygengo.com/string - we will love your feedback.

0
source

All Articles