Is there a way to get number of untranslated strings?

Asked by Savvas Radevic

Hi, is there a way, a function or two, to get the number of untranslated strings? Or a percentage of translated vs untranslated strings?
An example would be very welcome. :)

Question information

Language:
English Edit question
Status:
Solved
For:
php-gettext Edit question
Assignee:
No assignee Edit question
Solved by:
Данило Шеган
Solved:
Last query:
Last reply:
Revision history for this message
Best Данило Шеган (danilo) said :
#1

Not really. php-gettext provides a MO file reader with all the relevant functions generic gettext provides. However, MO files do not contain untranslated strings, in order to save space and to increase speed, and also, because they are not necessary.

To figure out how many untranslated strings there are, you'd still have to use "msgmerge -cv" (or any other PO parser) on the unprocessed PO file instead.

Revision history for this message
Savvas Radevic (medigeek) said :
#2

Thanks Данило Шеган, that solved my question.