Ticket URL: <
http://trac.wxwidgets.org/ticket/15253#comment:20>
#15253: No translation in osx trunk
--------------------------+-------------------------------------------------
Reporter: raananc | Owner: vaclavslavik
Type: defect | Status: accepted
Priority: normal | Milestone: 2.9.5
Component: translations | Version:
Keywords: | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------
Comment(by raananc):
If I understand correctly, there are two issues which have to be addressed
separately:
The first concerns the file structure for different platforms, the second
concerns the contents of these files.
Taking Microsoft Office14 as an illustration of how this is done in
'''Windows''', one can see the following structure:
C:\!ProgramData\Microsoft\OEMOffice14\Office14\ containing the folders
(sample): [[BR]]Access.de-de [[BR]]Access.en-us [[BR]]Access.fr-fr
[[BR]]Office.de-de [[BR]]Office.en-us [[BR]]Office.fr-fr [[BR]]Office64
.de-de [[BR]]Office64.en-us [[BR]]Office64.fr-fr
Each of the language folders contains a set of files specific to each
software component (Access, Office, Office64)
[[BR]]In '''OSX '''(10.4 and later), an application package contains, in
the Resources folder, language-specific folders such as
German.lproj
English.lproj
French.lproj
I have no knowledge about how language is managed in '''Linux'''.
Each platform is using its own technology for transaltions.
From this short analysis, can one draw the following conclusions about
what wxTranslations is expecting?
1. The location of the language folders in Windows & Linux is specified
by `AddCatalogLookupPathPrefix.`In OSX, there is no need to call
`AddCatalogLookupPathPrefix `if the language folders are in the
'Resources' folder of the '.app' folder.[[BR]](If there is no other use
for wxLocale than specifying the catalog lookup path prefix, then maybe
this function can be transferred to wxTranslations which would than be
self-sufficient).[[BR]]
1. In Windows & Linux, language folders are named following the
'ApplicationName.fr-fr' convention[[BR]]In OSX, language folders are named
following the 'Language.lproj'
convention.[[BR]][
http://trac.wxwidgets.org/search?q=wiki%3AGetBestTransaltion
In Windows, GetBestTransaltion] takes [wiki:ApplicationName
"'ApplicationName"]' as the 'Domain' argument. If the folders are named as
fr-fr, then 'Domain' argument should be a wxEmptyString ?[[BR]]
1. The language folders contain .mo files
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/15253#comment:20>