RFEs | |
Competition and standards
List of other products with similar/interesting/related features. Here I would like to see some "editorial" content. How do our features compare to others?
CVS Doc section
This is where new features being developed and only in CVS are documented. When the CVS becomes RC/official release, the info in the CVS docs is transferred to update the official docs (FeatureXDoc).
Discussion/participation
|
language.php's memoryĀ usage | |
mose said :the language.php is so heavy that it's one reason we need huge amount of memory for tiki. (sylvie: 228KB .... is it really bigcompared to the 5MB - but optimization is everywhere) Maybe that file cane be regenerated by admin with only the selected options translated, to a language_light.php. That would imply to declare somewhere the list of tpl for each feature, but imho it's not so a huge work when that first step is done. Chealer9 adds :
Update : I attached a discussion I had at #smarty with other devs. One talked about gettext, I wonder if we can use it optionally. It was supposed to be useful for all those advantages except context. Update 2 : Sylvie came with a link to Smarty gettext today on IRC without much feedback, but it sounds good š Update3 : sylvie: In 1.9 I took away a couple of include(language.php). Now (I think) the include is done only when it is really necessary. If the tpl files are precompiled, the include(language.php) is only done by the tra calls.
The creation of the language_tra.php can be done when you compile all the tpls. |
Remove bloat fromĀ language.php | |
Observation | |
As we see on i18n status, many translations are incomplete. I have in mind two patches submitted to SourceForge, one proposing Ukrainian with 30% completion, the other proposing Korean with 10% completion. I hesitate to include those, since Tiki's default lang folder already eats about 4 MB, and those languages are not even complete. |
Proposed improvement | |
Why not add something to the release script that would remove untouched strings from (incomplete) language.php-s? The package's size would be reduced, but also the memory consumption of those languages. This sounds quite easy to code, and it would make include partial translations much more reasonable to consider. Chealer9 What about the question that Isam Bayazidi posed about RTL languages, ones that are read right-to-left, and the benefit of right justification? He wanted a bi-lingual site, i.e. Arabic and English. ā UserPagejcwinnie 2004-May-17 - a partial solution in i18n status right to left langauge paragraph - sylvie
|
tr tokensĀ proposal | |
The following mechanism (or something very similar) is used in most popular operating systems - it could be added to Tiki with minimal impact on the Tiki environment. |
Syntax | |
Either token or default text must be supplied. Supplying both is acceptable. |
New message stringĀ format: | |
Spaces may only appear in Alternative tokensAlternative tokens are seperated by '/'. WildcardsThe '?' character in a token in the file matches any character in the same position in the token supplied to be matched. Case significanceCase is significant. |
Unmatchable tokens | ||||||
The actions to find a match for a token are:
NamespacesInitially the extended features of tr would only be used for text labels and button text. The token always begins with:
Supplying a defaultĀ stringWhenever you use Users can Shade Modules:{/tr} Errors
|
get_strings.php | |
get_strings.php would need to be extended to understand the new syntax and do the right thing.
- to be able to specify the context af a translation.
string{/tr}
For the optimisation I propose to compile the remaining strings in a (md5, translatedstring) to speed the process. sylvie
See also
|