Bundle the Serbian translation as sr_YU on OS X as it doesn't have sr_RS

This commit is contained in:
Thomas Goyne 2012-09-23 08:02:01 -07:00
parent 68fcf90de5
commit ccf3e94d96
2 changed files with 6 additions and 2 deletions

View file

@ -202,6 +202,8 @@ wxArrayInt AegisubLocale::GetAvailableLanguages() {
"ru", "ru",
"sr_RS", "sr_RS",
"sr_RS@latin", "sr_RS@latin",
"sr_YU",
"sr_YU@latin",
"vi", "vi",
"zh_CN", "zh_CN",
"zh_TW" "zh_TW"

View file

@ -81,9 +81,11 @@ echo "---- Copying Aegisub locale files ----"
mkdir -vp "${PKG_DIR}/Contents/Resources/en.lproj" mkdir -vp "${PKG_DIR}/Contents/Resources/en.lproj"
for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do
# The only serbian locale 10.8 has is sr_YU
destname=$(echo ${i} | sed 's/sr_RS/sr_YU/')
if test -f "po/${i}.mo"; then if test -f "po/${i}.mo"; then
mkdir -p "${PKG_DIR}/Contents/Resources/${i}.lproj" mkdir -p "${PKG_DIR}/Contents/Resources/${destname}.lproj"
cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${i}.lproj/aegisub.mo" cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${destname}.lproj/aegisub.mo"
else else
echo "${i}.mo not found!" echo "${i}.mo not found!"
exit 1 exit 1