[GTK] Enable translations for WebKit2
authorkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 16:25:25 +0000 (16:25 +0000)
committerkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Mar 2013 16:25:25 +0000 (16:25 +0000)
commit48ed557ebc495a4ce85f019384000f1faa43a7b1
treeb7e7dda9db7ef26e5ae8a683c587da6599cbb901
parent8b86b0aa3e7f3c5dce58d80392260f4317d62dba
[GTK] Enable translations for WebKit2
https://bugs.webkit.org/show_bug.cgi?id=111398

Patch by Gustavo Noronha Silva <gns@gnome.org> on 2013-03-07.
Reviewed by Martin Robinson.

* GNUmakefile.am: adjust path for i18n GNUmakefile.am.
* configure.ac: generate the i18n makefile unconditionally, the translations are
used by both WebKitGTK+ and WebKit2GTK+.

Source/WebCore:

* GNUmakefile.am: distribute po files.
* platform/gtk/po/POTFILES.in: adjust paths for translatable files.

Source/WebCore/platform/gtk/po:

* GNUmakefile.am: Renamed from Source/WebKit/gtk/po/GNUmakefile.am.
* POTFILES.in: Renamed from Source/WebKit/gtk/po/POTFILES.in.
* README: Renamed from Source/WebKit/gtk/po/README.
* ar.po: Renamed from Source/WebKit/gtk/po/ar.po.
* as.po: Renamed from Source/WebKit/gtk/po/as.po.
* bg.po: Renamed from Source/WebKit/gtk/po/bg.po.
* cs.po: Renamed from Source/WebKit/gtk/po/cs.po.
* de.po: Renamed from Source/WebKit/gtk/po/de.po.
* el.po: Renamed from Source/WebKit/gtk/po/el.po.
* en_CA.po: Renamed from Source/WebKit/gtk/po/en_CA.po.
* en_GB.po: Renamed from Source/WebKit/gtk/po/en_GB.po.
* eo.po: Renamed from Source/WebKit/gtk/po/eo.po.
* es.po: Renamed from Source/WebKit/gtk/po/es.po.
* et.po: Renamed from Source/WebKit/gtk/po/et.po.
* eu.po: Renamed from Source/WebKit/gtk/po/eu.po.
* fr.po: Renamed from Source/WebKit/gtk/po/fr.po.
* gl.po: Renamed from Source/WebKit/gtk/po/gl.po.
* gu.po: Renamed from Source/WebKit/gtk/po/gu.po.
* he.po: Renamed from Source/WebKit/gtk/po/he.po.
* hi.po: Renamed from Source/WebKit/gtk/po/hi.po.
* hu.po: Renamed from Source/WebKit/gtk/po/hu.po.
* id.po: Renamed from Source/WebKit/gtk/po/id.po.
* it.po: Renamed from Source/WebKit/gtk/po/it.po.
* ko.po: Renamed from Source/WebKit/gtk/po/ko.po.
* lt.po: Renamed from Source/WebKit/gtk/po/lt.po.
* lv.po: Renamed from Source/WebKit/gtk/po/lv.po.
* mr.po: Renamed from Source/WebKit/gtk/po/mr.po.
* nb.po: Renamed from Source/WebKit/gtk/po/nb.po.
* nl.po: Renamed from Source/WebKit/gtk/po/nl.po.
* pa.po: Renamed from Source/WebKit/gtk/po/pa.po.
* pl.po: Renamed from Source/WebKit/gtk/po/pl.po.
* pt.po: Renamed from Source/WebKit/gtk/po/pt.po.
* pt_BR.po: Renamed from Source/WebKit/gtk/po/pt_BR.po.
* ro.po: Renamed from Source/WebKit/gtk/po/ro.po.
* ru.po: Renamed from Source/WebKit/gtk/po/ru.po.
* sl.po: Renamed from Source/WebKit/gtk/po/sl.po.
* sr.po: Renamed from Source/WebKit/gtk/po/sr.po.
* sr@latin.po: Renamed from Source/WebKit/gtk/po/sr@latin.po.
* sv.po: Renamed from Source/WebKit/gtk/po/sv.po.
* uk.po: Renamed from Source/WebKit/gtk/po/uk.po.
* vi.po: Renamed from Source/WebKit/gtk/po/vi.po.
* zh_CN.po: Renamed from Source/WebKit/gtk/po/zh_CN.po.

Source/WebKit2:

* GNUmakefile.am: define PACKAGE_LOCALE_DIR when building WebProcess's main module.
* WebProcess/gtk/WebProcessMainGtk.cpp:
(WebKit::WebProcessMainGtk): register the i18n domain name, and prefer UTF-8, since
we're GTK+; at the moment we're just using the same name as WebKitGTK+, pro: the
translation module can be reused, con: you can't have different versions of
WebKitGTK+ and WebKit2GTK+ installed, because the module would not be fit for reuse
in that case.
* UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
(WebKit::childSetupFunction): do not set LC_ALL environment variable explicitly,
the child process will already inherit the environment of the parent, which should
have all the variables set properly.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
82 files changed:
ChangeLog
GNUmakefile.am
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.am
Source/WebCore/platform/gtk/po/ChangeLog [moved from Source/WebKit/gtk/po/ChangeLog with 89% similarity]
Source/WebCore/platform/gtk/po/GNUmakefile.am [moved from Source/WebKit/gtk/po/GNUmakefile.am with 79% similarity]
Source/WebCore/platform/gtk/po/POTFILES.in [new file with mode: 0644]
Source/WebCore/platform/gtk/po/README [moved from Source/WebKit/gtk/po/README with 100% similarity]
Source/WebCore/platform/gtk/po/ar.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/as.po [moved from Source/WebKit/gtk/po/as.po with 68% similarity]
Source/WebCore/platform/gtk/po/bg.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/cs.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/de.po [moved from Source/WebKit/gtk/po/de.po with 50% similarity]
Source/WebCore/platform/gtk/po/el.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/en_CA.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/en_GB.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/eo.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/es.po [moved from Source/WebKit/gtk/po/es.po with 50% similarity]
Source/WebCore/platform/gtk/po/et.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/eu.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/fr.po [moved from Source/WebKit/gtk/po/fr.po with 62% similarity]
Source/WebCore/platform/gtk/po/gl.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/gu.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/he.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/hi.po [moved from Source/WebKit/gtk/po/hi.po with 66% similarity]
Source/WebCore/platform/gtk/po/hu.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/id.po [moved from Source/WebKit/gtk/po/id.po with 58% similarity]
Source/WebCore/platform/gtk/po/it.po [moved from Source/WebKit/gtk/po/it.po with 51% similarity]
Source/WebCore/platform/gtk/po/ko.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/lt.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/lv.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/mr.po [moved from Source/WebKit/gtk/po/mr.po with 67% similarity]
Source/WebCore/platform/gtk/po/nb.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/nl.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/pa.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/pl.po [moved from Source/WebKit/gtk/po/pl.po with 50% similarity]
Source/WebCore/platform/gtk/po/pt.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/pt_BR.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/ro.po [moved from Source/WebKit/gtk/po/ro.po with 61% similarity]
Source/WebCore/platform/gtk/po/ru.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/sl.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/sr.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/sr@latin.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/sv.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/uk.po [moved from Source/WebKit/gtk/po/uk.po with 50% similarity]
Source/WebCore/platform/gtk/po/vi.po [new file with mode: 0644]
Source/WebCore/platform/gtk/po/zh_CN.po [new file with mode: 0644]
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/po/POTFILES.in [deleted file]
Source/WebKit/gtk/po/ar.po [deleted file]
Source/WebKit/gtk/po/bg.po [deleted file]
Source/WebKit/gtk/po/cs.po [deleted file]
Source/WebKit/gtk/po/el.po [deleted file]
Source/WebKit/gtk/po/en_CA.po [deleted file]
Source/WebKit/gtk/po/en_GB.po [deleted file]
Source/WebKit/gtk/po/eo.po [deleted file]
Source/WebKit/gtk/po/et.po [deleted file]
Source/WebKit/gtk/po/eu.po [deleted file]
Source/WebKit/gtk/po/gl.po [deleted file]
Source/WebKit/gtk/po/gu.po [deleted file]
Source/WebKit/gtk/po/he.po [deleted file]
Source/WebKit/gtk/po/hu.po [deleted file]
Source/WebKit/gtk/po/ko.po [deleted file]
Source/WebKit/gtk/po/lt.po [deleted file]
Source/WebKit/gtk/po/lv.po [deleted file]
Source/WebKit/gtk/po/nb.po [deleted file]
Source/WebKit/gtk/po/nl.po [deleted file]
Source/WebKit/gtk/po/pa.po [deleted file]
Source/WebKit/gtk/po/pt.po [deleted file]
Source/WebKit/gtk/po/pt_BR.po [deleted file]
Source/WebKit/gtk/po/ru.po [deleted file]
Source/WebKit/gtk/po/sl.po [deleted file]
Source/WebKit/gtk/po/sr.po [deleted file]
Source/WebKit/gtk/po/sr@latin.po [deleted file]
Source/WebKit/gtk/po/sv.po [deleted file]
Source/WebKit/gtk/po/vi.po [deleted file]
Source/WebKit/gtk/po/zh_CN.po [deleted file]
Source/WebKit2/ChangeLog
Source/WebKit2/GNUmakefile.am
Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp
configure.ac