Good to hear the exams are out of the way. Hope they all went okay.
I think it should be easy enough for people to port DooTranslate to use a DB without needing a dedicated module. Or if one is needed it should not define to much in terms of the db structure etc. I could forsee it being easier to build an admin feature from.
With regards to undefined strings I was thinking something like
en.lang
- Code: Select all
common-string-one|"One"
common-string-two|"Two"
common-string-three|"Three"
fr.lang
- Code: Select all
common-string-one|"Un"
Note: In the french language file common-string-two and common-string-three are undefined.
Now if I was to use the translator class to fetch common-string-two in french I would like it to do the following
1) Some how report that its missing. I was thinking maybe it can add the following to the bottom of the language file:
- Code: Select all
common-string-two|__UNDEFINED__
2) It would load the english translation from the english translation file (as english is my apps default language)
I suggest the __UNDEFINED__ as it makes or more obvious to the person translating strings AND the translator class that this string is undefined and to revert to the default string.
Richard
Note: code samples my not be 100% accurate.