Skip to content

Commit

Permalink
List supported languages in Info.plist
Browse files Browse the repository at this point in the history
If the system's language setting isn't listed here, Pinta will just be launched with the default locale when running from the app bundle (from the terminal, the LANG environment variable may cause the expected locale to be used)

Fixes: #1976178
  • Loading branch information
cameronwhite committed Dec 25, 2023
1 parent 0e1fc12 commit 7bfdc5e
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Thanks to the following contributors who worked on this release:
- Added a "Reseed" button for the random noise used by several effects ("Add Noise" and "Frosted Glass"). Previously, the noise pattern changed every time the effect was computed (including when other parameters were changed).

### Fixed
- Fixed issues where the system language settings on macOS did not properly take effect in Pinta ([#1976178](https://bugs.launchpad.net/pinta/+bug/1976178))
- Fixed an issue where the Pan tool's cursor could show up as a missing icon ([#2013047](https://bugs.launchpad.net/pinta/+bug/2013047))
- Fixed errors when saving a file that was opened with a missing or incorrect extension ([#2013050](https://bugs.launchpad.net/pinta/+bug/2013050))
- Fixed a bug where certain layer opacity settings could be incorrectly rounded ([#2020596](https://bugs.launchpad.net/pinta/+bug/2020596))
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ GETTEXT_PACKAGE=pinta
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")

# Note: also need to update installer/macos/Info.plist when adding a language.
ALL_LINGUAS="af ar ast az be bg bn br bs ca cs da de dv el en_AU en_CA en_GB eo es et eu fa fi fil fo fr ga gl he hi hr hu hy id ie it ja ka kab ko la lt lv ms my nb nl nn oc pl pt pt_BR ro ru si sk sl sq sr sv th tr uk vi zh_CN zh_HK zh_TW"
AM_GLIB_GNU_GETTEXT

Expand Down
74 changes: 73 additions & 1 deletion installer/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,77 @@
</dict>
</dict>
</array>
</dict>
<key>CFBundleLocalizations</key>
<array>
<string>af</string>
<string>ar</string>
<string>ast</string>
<string>az</string>
<string>be</string>
<string>bg</string>
<string>bn</string>
<string>br</string>
<string>bs</string>
<string>ca</string>
<string>cs</string>
<string>da</string>
<string>de</string>
<string>dv</string>
<string>el</string>
<string>en_AU</string>
<string>en_CA</string>
<string>en_GB</string>
<string>en</string>
<string>eo</string>
<string>es</string>
<string>et</string>
<string>eu</string>
<string>fa</string>
<string>fi</string>
<string>fil</string>
<string>fo</string>

Check failure on line 183 in installer/macos/Info.plist

View workflow job for this annotation

GitHub Actions / Check for spelling errors

fo ==> of, for, to, do, go
<string>fr</string>
<string>ga</string>
<string>gl</string>
<string>he</string>
<string>hi</string>
<string>hr</string>
<string>hu</string>
<string>hy</string>
<string>id</string>
<string>ie</string>
<string>it</string>
<string>ja</string>
<string>ka</string>
<string>kab</string>
<string>ko</string>
<string>la</string>
<string>lt</string>
<string>lv</string>
<string>ms</string>
<string>my</string>
<string>nb</string>
<string>nl</string>
<string>nn</string>
<string>oc</string>
<string>pl</string>
<string>pt</string>
<string>pt_BR</string>
<string>ro</string>
<string>ru</string>
<string>si</string>
<string>sk</string>
<string>sl</string>
<string>sq</string>
<string>sr</string>
<string>sv</string>
<string>th</string>
<string>tr</string>
<string>uk</string>
<string>vi</string>
<string>zh_CN</string>
<string>zh_HK</string>
<string>zh_TW</string>
</array>
</dict>
</plist>

0 comments on commit 7bfdc5e

Please sign in to comment.