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",
"sr_RS",
"sr_RS@latin",
"sr_YU",
"sr_YU@latin",
"vi",
"zh_CN",
"zh_TW"

View File

@ -81,9 +81,11 @@ echo "---- Copying Aegisub locale files ----"
mkdir -vp "${PKG_DIR}/Contents/Resources/en.lproj"
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
mkdir -p "${PKG_DIR}/Contents/Resources/${i}.lproj"
cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${i}.lproj/aegisub.mo"
mkdir -p "${PKG_DIR}/Contents/Resources/${destname}.lproj"
cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${destname}.lproj/aegisub.mo"
else
echo "${i}.mo not found!"
exit 1