Loading...
 

History: i18n Admin

Comparing version 34 with version 58


@@ -Lines: 1-30 changed to +Lines: 1-6 @@
! Internationalization Admin
- This page explains how to administer a Tiki site with all issues relative to languages ( ((Internationalization (i18n)|Internationalization - ((Internationalization (i18n))) -)) ). To learn how to create a new language, update it, customize the general purpose translation for your specific site, please see: ((i18n User|Internationalization User)) and ((Translating Tiki interface)).
+ This page explains how to administer a Tiki site with all issues relative to languages ((i18n|Internationalization)). To learn how to create a new language, update it, customize the general purpose translation for your specific site, please see: ((Interface translation (old)|Internationalization User)) and ((Interface translation)).
- __Related Pages:__
- ((Character encoding)), ((UTF8))
- {maketoc}
-
- !! Configuration
- For ((Tikiwiki 2.0))
- ^::{img src="img/wiki_up/110_i18n_admin_01.png" }::^
-
- || :: __I18n setup__::
- Default Language: | Default language for the whole site.
- Multilingual: | Enable multilingual features
- Multilingual structures: | Uses a single ((structure)) for all languages. Will display the best page possible based on the user's preferences or browser settings. No additional administration required.
- Show pages in user's preferred language: |To activate the 'best language' feature.It uses the "best language" (&bl=y) parameter on calls to wiki pages by default
- Detect browser language: | Show page in the language of the browser if the user is not logged in or hasn't chosen any preferred language
- Restrict supported languages: | Allow an admin to select a subset of all languages to be offered to users, not all. Selecting it opens up a multiple selection box, to enable choosing Available languages (See below):
- Quantify change size: | On translation module, an estimate of the change size (in %) is shown
- User Watches Translations: | When subscribed to a page (to receive email notifications of changes), messages are sent also for changes on the other translations of the same page
- Use database for translation: | Enable making a copy of the language.php file for your desired languages on the database, so that a User Interface within Tiki can be used to collaboratively translate the interface among users, or enable using ((Interactive Translation))
- Show Babelfish Translation URLs: | It shows clicable urls to translate a page to another language through Babelfish website
- Show Babelfish Translation Logo: | Same as before but with logos instead of text
- ||
-
- When selecting the option "Restrict supported languages:", then a multiple select box will appear on the screen:
- ^::{img src="img/wiki_up/110_i18n_admin_02.png" }::^

!!How to build a monolingual site?

@@ -Lines: 37-41 changed to +Lines: 13-17 @@
* In the admin/general panel, you have to set "__Language__" to your site language
* In the admin/general panel, you have to uncheck "__Detect browser language__"
- * In the admin/general panel, you can set "__Default charset for sending mail__". Tiki default is utf8 but if the default for you language is iso-8859-1 and if you users use mail user agent that are not able to read utf8, it is better to set the charset to iso-8858-1. A registered user will always be able to reset this preference.
+ * In the admin/general panel, you can set "__Default charset for sending mail__". Tiki default is UTF-8 but if the default for you language is iso-8859-1 and if you users use mail user agent that are not able to read UTF-8, it is better to set the charset to iso-8858-1. A registered user will always be able to reset this preference.
* In the admin/general panel, you have to set the __date formats__, if you want the language default, copy/paste from the language.php file.

@@ -Lines: 43-47 changed to +Lines: 19-23 @@
* Tip: if you want to speed up you site, it is better to "compile" the templates. Go to the panel admin/system admin and click on "compile" of you language.
* Tip: if you want to save some space on disk, you can delete the directories lang/xx where xx is a language you don't use
- * Tip: if you want to change some strings, you can edit the file lang/xx/language.php. But be careful, you must follow the syntax and you must use and save the file in utf8 encoding. To see your update in action, you must clear the cache tiki build automatically. To do that, go in the panel admin/system admin and click on the "Empty" of templates_c line
+ * Tip: if you want to change some strings, you can edit the file lang/xx/language.php. But be careful, you must follow the syntax and you must use and save the file in UTF-8 encoding. To see your update in action, you must clear the cache tiki build automatically. To do that, go in the panel admin/system admin and click on the "Empty" of templates_c line

It is possible to use the database to store the translated strings instead of the language.php file. See this page for more information

@@ -Lines: 51-55 changed to +Lines: 27-31 @@
The content of some objects (page, article) can also be displayed in the same language than the strings if the translations has been done and established.
- !!!To configure a multilingual site:
+ !!! To configure a multilingual site
* In the admin/login panel, you have to define the list of languages you want. You have to check "__Reg users can change language__". You can restrict the available languages by setting "__Restrict available languages__"
* In the admin/general panel, you have to set the default __language __for the site, it is the language, the anonymous visitor of your site will see.

@@ -Lines: 57-61 changed to +Lines: 33-39 @@
* In the admin/features panel, you have to check "__User Preferences Screen__"
- !!!To have a multilingual content:
+ !!! To make a multilingual menu
*((Multilingual Menu))
!!!To have a multilingual content
* In the admin/features, you have to check "__Multilingual__". This will give the user the possibility to set the language of a Wiki page or an article and to build a set of translations (he would be able to say that this page/article is the translation of this page/article). Each user who has the right to edit a page/article can set the language and links it to the other translations.

@@ -Lines: 71-98 changed to +Lines: 49-59 @@
For each language with a linguistic variant (ex: en-uk), the root language is added (ex: en) to the list (just after the variant)
- !!!Best language
Tiki will use the best language in some situations:
*In the Articles Home page and in the plugin Articles, if an article belongs to a set of translations only the article with the best language will be displayed.
*If the parameter bl or best_lang is given to tiki-index.php and if the page belongs to a set of translations, the page in the best language will be automatically displayed.
*If the feature "__
Best language__" is set in the admin/features, a link to a wiki page from a wiki page will reach the page in the best language if this page is in a set of translations.(the feature best_language is activated with Show pages in user's preferred language)

The option best language means that the page that will be displayed is driven by your language user preferences. So if your language is Spanish, then when navigating from page to page , each time a page in Spanish exists in the set of translation, this page will be displayed.
The Best language feature is mainly used in an open multilingual site as tikiwiki.org. The pages are not translated in order. The translators don't have to change the links to the translated page. Their job is easier and it avoids to have a lot of bad links during a translation phase. For an operational multilingual site, the links must be adapted and the feature desactivated.
+ !!! Best language
((Best language))
!!!Force the strings to be in the same language than a page (tw>=3.0)
Use the option Page language forces to display strings in the same language to do that. (Can be backport in tw 2.x: svn revision 14114)

!!!Modules displayed only for some language
- If you want a module to be displayed only for some language, you have to set the parameter lang in the admin/modules/the_module panel. The syntax is
* lang=fr
* lang[]=en&lang[]=fr
* lang=fr&max=2

The module will be displayed only if the current language is in lang

!!!
Multilingual user menu
You can use the previous feature (m
odule displayed only for a language) or you can use the translation process
* set your menu option name in admin-> menu in English
* set the user module title in the admin -> modules panel in English
* add in lang/your_language/language.php, the list on translations
+ *((Multilingual Module))

!!!Tip

@@ -Lines: 101-111 changed to +Lines: 62-72 @@
!! Goodies
Tiki also has some goodies that can help in a multilingual site:
- * a module: ((mod_switch_lang)) that enables a user or an anonymous to switch language.
* a module: ((mod_switch_lang2)) that enables a user or an anonymous to switch language. This module can be easily used to switch from a page in a language to its translation.
+ * ((Module switch_lang)) that enables a user or an anonymous to switch language.
* ((Module switch_lang2)) that enables a user or an anonymous to switch language. This module can be easily used to switch from a page in a language to its translation.
* a wiki plugin ((pluginVersions)) more generic can be used for language switch
* a wiki plugin ((pluginLang)) to display a text only if the language matches
* a wiki plugin ((pluginTranslated)) to display a link only if the language matches
* a smarty modifier ((smartyTranslation)) to display a text only if the language matches
- * In 1.1
, you can add an additional parameter to the url switchLang=<langName>, where langName is the 2 language letters code (+ eventually - 2 country letters code). This parameter switches the language (for a logged user, it changes his preference - for an anonymous, it remembers the language in a session variable). Example: tiki-index.php?page=Internationalization&switchLang=fr
+ * In 2.
, you can add an additional parameter to the url switchLang=<langName>, where langName is the 2 language letters code (+ eventually - 2 country letters code). This parameter switches the language (for a logged user, it changes his preference - for an anonymous, it remembers the language in a session variable). Example: tiki-index.php?page=Internationalization&switchLang=fr or tiki-register.php?switchLang=fr

!! Calendar first day

@@ -Lines: 117-121 changed to +Lines: 78-82 @@

!!Where to find a language file
- All the language.php files are delivered with Tiki.
+ All the language.php files are delivered with Tiki. Just look for the files at: ''/lang/xx/language.php'' where xx is a 2-letter or 4-letter language code

!!FAQ

@@ -Lines: 127-131 changed to +Lines: 88-92 @@
In 1.7.2, Tiki supplies a limited mb_substr if this function doesn't exist . Some calls have been changed from substr to mb_substr - no functions are provided for the other string functions.
- An interesting article about database in utf8 on tikiwiki.org: [http://tikiwiki.org/UTF-8]
+ An interesting article about database in UTF-8 on tikiwiki.org: [http://tikiwiki.org/UTF-8]

!!Right to Left Language

@@ -Lines: 142-146 changed to +Lines: 103-107 @@
***~np~{tr}You will send {$nb} emails{/tr}~/np~. In the language file, you will find "You will send{\$nb} emails"=>"Vous recevrez {\$nb} emails"
***if you know that a string will be translated later via a variable, please add the comment {*get_strings ~np~{tr}string{/tr}~/np~ *} to have the string added to the language file. (__tiki1.9__)
- ** Please enclose your ~np~{tr} into double quote to ease the translation with language using simple quote
+ ** Please enclose your ~np~{tr}~/np~ into double quote to ease the translation with language using simple quote
*In PHP, the strings are the parameter of the function tra
** the string can contain php variable

@@ -Lines: 153-159 changed to +Lines: 114-128 @@
# In a prefilter: it means when the Smarty cache is built. It means that the translation is not done each time you access a template but only once.
# In a plugin : The string with variable or not find by the prefilter function is look again each time the template is accessed.
+
+ !! Linguistic variance
+ For each language with a variant (ex: en-uk), the root language is added (ex: en) to the list (just after the variant)
+

-=Related pages=-
- * ((Internationalization (i18n)|Internationalization))
*
((i18n User|Internationalization User))
* ((Translating Tiki interface))
+ * ((i18n|Internationalization))
*
((Interface translation (old)|Internationalization User))
* ((Interface translation))
*
((Character encoding))
* ((UTF8))

History

Advanced
Information Version
Yves Kipondo 58
Rick Sapir / Tiki for Smarties 57
Marc Laporte 55
Marc Laporte 54
Marc Laporte Moving to own page 53
Marc Laporte 52
Marc Laporte 51
Marc Laporte duplication 50
Marc Laporte we really need a tool for this! 49
Marc Laporte 48
Marc Laporte 47
Marc Laporte moving to dedicated page 46
Marc Laporte Moving to own page 45
Marc Laporte 44
Marc Laporte 43
Marc Laporte 42
Marc Laporte 41
Marc Laporte 40
Marc Laporte 39
Marc Laporte 38
Marc Laporte 37
sylvie 36
Marc Laporte Adding a few blank lines at the bottom just to test if nothing else appears 35
Marc Laporte restoring weirdness from previous edit 34
Marc Laporte In this case, we don't want them interpreted 33
sylvie 32
sylvie 31
sylvie 30
Marc Laporte 29
zorp typo in string: tiki-index.php?page=Internationalization&switchLang=fr 28
sylvie Rollback 27
magowiz 26
magowiz 25
magowiz 24
magowiz 23
sylvie 22
Marc Laporte link 21
Xavier de Pedro box of text added, including lph explanation of multilingual structures (nice addon) 20
Xavier de Pedro 19
Xavier de Pedro 18
mlpvolt 17
mlpvolt 16
Xavier de Pedro 15
Xavier de Pedro 14
Xavi (as xavidp - admin) 13
sylvie 12
Marc Laporte redflo solved in August 2004. http://tikiwiki.org/CharacterEncodingTrouble 11
sylvie 10
Xavi (as xavidp - admin) description of page corrected :-), and added square brackets for url (was not recognized as url before) 9
sylvie 8
sylvie switchLang parameter 7
sylvie Multilingual user menu 6
Marc Laporte correct panel 5
sylvie pluginVersions 4
sylvie User Preferences Screen 3
sylvie module/language filter 2
sylvie 1

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki