Skip to content

Commit

Permalink
Merge pull request #72 from danirod/remove-en
Browse files Browse the repository at this point in the history
Remove English as a locale
  • Loading branch information
danirod authored Aug 7, 2024
2 parents 83e9441 + 18e776b commit 74f55ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 409 deletions.
9 changes: 4 additions & 5 deletions build-aux/macos-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ gtk4-update-icon-cache -q -t -f "$RESOURCES_ROOT/share/icons/hicolor"
gtk4-update-icon-cache -q -t -f "$RESOURCES_ROOT/share/icons/Adwaita"

# Add extra locales
for lang in $(cat "po/LINGUAS" | grep -v '^#\|en'); do
for lang in $(cat "po/LINGUAS" | grep -v '^#'); do
cp -f $(brew --prefix)/share/locale/$lang/LC_MESSAGES/{gdk-pixbuf,gettext-runtime,glib20,gtk40,gtksourceview-5,libadwaita,shared-mime-info}.mo "$RESOURCES_ROOT/share/locale/$lang/LC_MESSAGES"
done

Expand Down Expand Up @@ -161,11 +161,10 @@ find "$RESOURCES_ROOT/lib/gdk-pixbuf-2.0/2.10.0/loaders" -name '*.so' | while re
done

# These directories must exist for macOS to pick the locales (they can be empty)
mkdir -p "$RESOURCES_ROOT/ca.lproj"
mkdir -p "$RESOURCES_ROOT/en.lproj"
mkdir -p "$RESOURCES_ROOT/eo.lproj"
mkdir -p "$RESOURCES_ROOT/es.lproj"
mkdir -p "$RESOURCES_ROOT/ro.lproj"
for lang in $(cat "po/LINGUAS" | grep -v '^#'); do
mkdir -p "$RESOURCES_ROOT/$lang.lproj"
done

# Create Info.plist
cat > "$APP_ROOT/Contents/Info.plist" << EOF
Expand Down
2 changes: 1 addition & 1 deletion build-aux/msys-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cp -RTn $MINGW_PREFIX/share/icons/Adwaita share/icons/Adwaita
cp -RTn $MINGW_PREFIX/share/icons/hicolor share/icons/hicolor
cp -RTn $MINGW_PREFIX/share/gtksourceview-5 share/gtksourceview-5

for lang in $(cat "$CARTERO_ROOT_DIR/po/LINGUAS" | grep -v '^#\|en'); do
for lang in $(cat "$CARTERO_ROOT_DIR/po/LINGUAS" | grep -v '^#'); do
cp -f $MINGW_PREFIX/share/locale/$lang/LC_MESSAGES/{gdk-pixbuf,gettext-runtime,glib20,gtk40,gtksourceview-5,libadwaita,shared-mime-info}.mo share/locale/$lang/LC_MESSAGES
done

Expand Down
3 changes: 0 additions & 3 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Please, keep this file sorted alphabetically.
# If you add new locales here, remember to update build-aux/macos-build.sh
#
ca
en
eo
es
ro
Loading

0 comments on commit 74f55ba

Please sign in to comment.