mirror of https://github.com/odrling/Aegisub
Bundle the Serbian translation as sr_YU on OS X as it doesn't have sr_RS
This commit is contained in:
parent
68fcf90de5
commit
ccf3e94d96
|
@ -202,6 +202,8 @@ wxArrayInt AegisubLocale::GetAvailableLanguages() {
|
|||
"ru",
|
||||
"sr_RS",
|
||||
"sr_RS@latin",
|
||||
"sr_YU",
|
||||
"sr_YU@latin",
|
||||
"vi",
|
||||
"zh_CN",
|
||||
"zh_TW"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue