Fix a few typos in Locale kit documentation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40521 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alex Wilson
2011-02-15 20:26:52 +00:00
parent e7e0c4a4bf
commit 7e8daebe34
+13 -12
View File
@@ -10,9 +10,9 @@ this string in the user's specified language, if available.
Most of the time, you don't have to deal with BCatalog directly. You use the Most of the time, you don't have to deal with BCatalog directly. You use the
translation macros instead. However, there are some cases where you will have to translation macros instead. However, there are some cases where you will have to
use catalogs directly. These include : use catalogs directly. These include :
\item Tools for managing catalogs : if you want to add, remove or edit \li Tools for managing catalogs : if you want to add, remove or edit
entries in a catalog, you need to do it using the BCatalog class. entries in a catalog, you need to do it using the BCatalog class.
\item Accessing catalogs other than your own : the macros only grant you \li Accessing catalogs other than your own : the macros only grant you
access to the catalog linked with your application. To access other catalogs access to the catalog linked with your application. To access other catalogs
(for example if you create a script interpreter and want to localize the (for example if you create a script interpreter and want to localize the
scripts), you will have to open a catalog associated with your script. scripts), you will have to open a catalog associated with your script.
@@ -30,17 +30,18 @@ the translator team, from your sourcecode.
\section chaining Chaining of catalogs \section chaining Chaining of catalogs
The catalogs you get from the locale kit are designed to use a fallback system The catalogs you get from the locale kit are designed to use a fallback system
so that the user get strings in the language he's the more fluent with, so that the user get strings in the language he's the most fluent with,
depending onwhat isavailable. depending on what catalogs are available.
For example, if the user set hislanguage preferences as french(France), spanish, For example, if the user sets his language preferences as french(France),
english, when an application loads a catalog, the following rules are used : spanish, english, when an application loads a catalog, the following rules are
\item Try to load a french(France) catalog. If it is found, this catalog used :
will automatically include strings from the generic french catalog. \li Try to load a french(France) catalog. If it is found, this catalog
\item Try to load a generic french catalog. will automatically include strings from the generic french catalog.
\item Try to load a generic spanish catalog. \li Try to load a generic french catalog.
\item Try to load a generic english catalog. \li Try to load a generic spanish catalog.
\item If all of them failed, use the strings that ar ein the source code. \li Try to load a generic english catalog.
\li If all of them failed, use the strings that are in the source code.
Note that french(France) will failback to french, but then directly to the Note that french(France) will failback to french, but then directly to the
language in the source code. This avoids mixing 3 or more languages in the same language in the source code. This avoids mixing 3 or more languages in the same