Skip to content

Commit

Permalink
Update 3 files
Browse files Browse the repository at this point in the history
- /Classes/Utilities/LocalizationUtility.php
- /ext_emconf.php
- /Documentation/Settings.cfg
  • Loading branch information
DaPedro committed Jan 15, 2024
1 parent 0651a31 commit 3beacf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Classes/Utilities/LocalizationUtility.php
Expand Up @@ -63,7 +63,10 @@ public static function getLanguageService(): LanguageService
* @param string $input The translation key.
* @return string The translation value or the translation key, when no translation is found.
*/
public static function localize(string $input): string {
public static function localize(?string $input): string {
if(empty($input)) {
return '';
}
return self::getLanguageService()->sL($input) ?? $input;
}
}
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Expand Up @@ -25,7 +25,7 @@ project = JAR Utilities
# ... (recommended) version, displayed next to title (desktop) and in <meta name="book-version"
# .................................................................................

release = 1.0.80
release = 1.0.81

# .................................................................................
# ... (recommended) displayed in footer
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Expand Up @@ -6,7 +6,7 @@
'category' => 'plugin',
'author' => 'invokable GmbH',
'author_email' => 'info@invokable.gmbh',
'version' => '1.0.80',
'version' => '1.0.81',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
Expand Down

0 comments on commit 3beacf3

Please sign in to comment.