Forráskód Böngészése

Typos and fixes

Signed-off-by: Suki <[email protected]>
Suki 11 éve
szülő
commit
4611fda4f8
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 2 2
      Sources/Themes.php
  2. 1 1
      Themes/default/languages/Errors.english.php

+ 2 - 2
Sources/Themes.php

@@ -1407,7 +1407,7 @@ function ThemeInstall()
 	<!-- The theme\'s version, please try to use semantic versioning. -->
 	<version>1.0</version>
 	<!-- Install for, the SMF versions this theme was designed for. Uses the same wildcards used in the packager manager. This field is mandatory. -->
-	<install for="2.1 - 2.1.99" />
+	<install for="2.1 - 2.1.99, '. strtr($forum_version, array('SMF ' => '')) .'" />
 	<!-- Theme name, used purely for aesthetics. -->
 	<name>' . $_REQUEST['copy'] . '</name>
 	<!-- Author: your email address or contact information. The name attribute is optional. -->
@@ -1559,7 +1559,7 @@ function ThemeInstall()
 						case 0: // This is exactly the same theme.
 						case -1: // The one being installed is older than the one already installed.
 						default: // Any other possible result.
-							fatal_lang_error('package_get_error_theme_no_new_version', false, array($install_info['version'], $to_update['version']))
+							fatal_lang_error('package_get_error_theme_no_new_version', false, array($install_info['version'], $to_update['version']));
 							break;
 						case 1: // Got a newer version, update the old entry.
 							$smcFunc['db_query']('', '

+ 1 - 1
Themes/default/languages/Errors.english.php

@@ -302,7 +302,7 @@ $txt['package_get_error_is_theme'] = 'You can\'t install a Theme from this secti
 $txt['package_get_error_is_mod'] = 'You can\'t install a mod from this section, please use the <a href="{MANAGEMODURL}">Package manager</a> page to upload it';
 $txt['package_get_error_theme_not_compatible'] = 'Your theme does not show it has compatibility with %1$s. Please contact the theme author.';
 $txt['package_get_error_theme_no_based_on_found'] = 'The theme you\'re trying to install depends on another theme: %1$s, you need to install that theme first.';
-$txt['package_get_error_theme_no_new_version'] = 'The theme you\'re trying to install is already installed or is an outdated version of it, the version you\'re trying to install is: %1$s and the version already installed is: %2$s';
+$txt['package_get_error_theme_no_new_version'] = 'The theme you\'re trying to install is already installed or is an outdated version of it. The version you\'re trying to install is: %1$s and the version already installed is: %2$s.';
 
 $txt['no_membergroup_selected'] = 'No membergroup selected';
 $txt['membergroup_does_not_exist'] = 'The membergroup doesn\'t exist or is invalid.';