Files
ports/multimedia/openshot/files/patch-src_classes_language.py
Tatsuki Makino 19fab59233 multimedia/openshot: Update to 3.1.1
ChangeLog: https://www.openshot.org/blog/2023/04/20/new_openshot_release_311/

 * Fixes and Improvements to Tracker and Object Detection effects (fix property
   editing, prevent crashes, removed black background)
 * Fixes to Parent property (simplify context menus, a single None option,
   include thumbnail images)
 * Prevent freeze on launch (when OpenShot's sample rate does not match the
   default Windows sample rate)
 * Adding Profile Search button to Preferences (for easier filtering and
   searching for a default profile)
 * Fix duplicate Profile name bug (causing an issue when exporting and
   re-opening a project with certain duplicate profile names)
 * Protect timeline (webview) from receiving lots of unneeded messages from
   libopenshot (prevents crash in certain cases)
 * Improved caching logic around Property Editor (better performance while
   adjusting clip properties)
 * Fix large memory leak in Clip::Close() method (not correctly clearing Clip
   cache)
 * Prevent crash on timeline::SetCache (adding thread lock)
 * Adding additional logging around audio device detection and initialization
 * Allow audio-only clips to be transparent (revealing the video/image of clips
   below them)
 * Multiple fixes for WebM decoding (preventing freezes and crashes)
 * Fix divide by zero error in AudioWaveformer (if no amplitude was found)
 * Fix GitHub actions to remove Ubuntu 18.04 builder and some additional tweaks
   to build scripts
 * Many small code refactors and fixes to prevent noisy errors (reported by
   Sentry.io)
 * Minimum libopenshot C++ dependency set to 0.3.2
 * Updated language translations
 * Updated credits and donors

PR:		271075
Reported by:	tatsuki_makino@hotmail.com (maintainer)
2023-04-29 19:15:14 +02:00

15 lines
557 B
Python

--- src/classes/language.py.orig 2023-04-20 05:27:15 UTC
+++ src/classes/language.py
@@ -101,7 +101,10 @@ def init_language():
log.info("Language overridden on command line, using: {}".format(info.CMDLINE_LANGUAGE))
# Default the locale to C, for number formatting
- locale.setlocale(locale.LC_ALL, 'C')
+ if ".UTF-8" in locale.setlocale(locale.LC_ALL):
+ locale.setlocale(locale.LC_ALL, 'C.UTF-8')
+ else:
+ locale.setlocale(locale.LC_ALL, 'C')
# Loop through environment variables
found_language = False