[Fedora-i18n-bugs] [Bug 559960] [all Lang]Translation is not available with 3.6 release

bugzilla at redhat.com bugzilla at redhat.com
Fri May 14 01:48:01 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=559960

--- Comment #29 from fujiwara <tfujiwar at redhat.com> 2010-05-13 21:47:54 EDT ---
I think it's better if zh_HK community could provide
/usr/lib64/firefox-3.6/langpacks/langpack-zh-HK at firefox.mozilla.org/chrome/zh-HK.jar

On the other hand, firefox.spec might provide a symlink while I think a short
locale zh could be zh-cn but not zh-tw.

ZH_TW_DIR=%_libdir/firefox-3.6/langpacks/langpack-zh-TW at firefox.mozilla.org/chrome
ZH_HK_DIR=`echo "$ZH_TW_DIR" | sed -e 's|zh-TW|zh-HK|g'`

if [ -f $RPM_BUILD_ROOT$ZH_TW_DIR/zh-TW.jar ] && [ ! -f
$RPM_BUILD_ROOT$ZH_HK_DIR/zh_HK.jar ] ; then
  if [ ! -d $RPM_BUILD_ROOT$ZH_HK_DIR ] ; then
    mkdir -p $RPM_BUILD_ROOT$ZH_HK_DIR
  fi
  (cd $RPM_BUILD_ROOT$ZH_HK_DIR; ln -s $ZH_TW_DIR/zh-TW.jar zh_HK.jar)
fi


To fix other short locale issues, probably it's better to swap the lines of
$SHORTMOZLOCALE and $MOZLOCALE in /usr/bin/firefox and then the language
community could provide the short locale jar files for the fallback languages.

--- /usr/bin/firefox.orig 2010-05-14 10:39:18.000000000 +0900
+++ /usr/bin/firefox 2010-05-14 10:43:58.000000000 +0900
@@ -194,16 +194,7 @@
     MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g"`

     # Try to link global langpacks to an extension directory
-    if [ -f
$MOZ_LANGPACKS_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org/chrome/$SHORTMOZLOCALE.jar
]; then
-        if [ -d
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org ];
then
-            rmdir
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org" >
/dev/null 2>&1
-        fi 
-        if ! [ -e
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org ];
then
-            ln -s
$MOZ_LANGPACKS_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org \
-                 
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org
-            echo
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org" >
$FEDORA_LANGPACK_CONFIG
-        fi
-    elif [ -f
$MOZ_LANGPACKS_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar
]; then
+    if [ -f
$MOZ_LANGPACKS_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar
]; then
         if [ -d
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org ]; then
             rmdir
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org" >
/dev/null 2>&1
         fi 
@@ -212,6 +203,15 @@
                  
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org
             echo
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org" >
$FEDORA_LANGPACK_CONFIG
         fi
+    elif [ -f
$MOZ_LANGPACKS_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org/chrome/$SHORTMOZLOCALE.jar
]; then
+        if [ -d
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org ];
then
+            rmdir
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org" >
/dev/null 2>&1
+        fi 
+        if ! [ -e
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org ];
then
+            ln -s
$MOZ_LANGPACKS_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org \
+                 
$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org
+            echo
"$MOZ_EXTENSIONS_PROFILE_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org" >
$FEDORA_LANGPACK_CONFIG
+        fi
     fi

     # And set it up for mozilla

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list