Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:l10n [2007/10/01 10:17] prabath |
dev:l10n [2009/07/06 20:36] (current) |
||
---|---|---|---|
Line 65: | Line 65: | ||
<? | <? | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
===== gettext Best Practices ===== | ===== gettext Best Practices ===== | ||
- | * Please make sure gettext contain only word phrases. | + | * 1. Please make sure gettext contain only word phrases. |
<code php> | <code php> | ||
Line 79: | Line 82: | ||
</ | </ | ||
- | * If there are html tags which we have to put within word phrase make sure to separate it from gettext. (see above example) | + | * 2. If there are html tags which we have to put within word phrase make sure to separate it from gettext. (see above example) |
- | * When writing paragraph within gettext make sure line brakes are not there (In this case line breaks are behave in different ways in different editors for instance Eclipse put line break when you press enter but Qunata won't put line break but it'll wrap it). | + | * 3. When writing paragraph within gettext make sure line brakes are not there (In this case line breaks are behave in different ways in different editors for instance Eclipse put line break when you press enter but Qunata won't put line break but it'll wrap it). |
<code php> | <code php> | ||
Line 90: | Line 93: | ||
", contact number, id card number, religion, race, displaced location, current location and other ") | ", contact number, id card number, religion, race, displaced location, current location and other ") | ||
- | This paragraph appears in sahana.po file in separate | + | This paragraph appears in sahana.po file in separate |
+ | writing the paragraph in same line. | ||
+ | |||
+ | Quanta will wrap this paragraph and appears in sahana.po file as a paragraph,which is allright :-) . | ||
- | But " | ||
</ | </ | ||
- | * Html special characters should separate from gettext. | + | * 4. Html special characters should separate from gettext. |
- | * Beware of quotation marks please put html special characters for quotation marks(Quotation marks are always bother developers, see above example) | + | * 5. Beware of quotation marks, please put html special characters for quotation marks(Quotation marks are always bother developers |