Skip to content

Commit f2712ae

Browse files
authored
Merge pull request #2156 from elcreator/add-command-for-missing-translation-keys
Add command for missing translation keys
2 parents 0e2a894 + f0d552a commit f2712ae

27 files changed

Lines changed: 5599 additions & 4648 deletions

assets/docs/license.txt

Lines changed: 652 additions & 258 deletions
Large diffs are not rendered by default.

core/src/Console/TranslationsSyncCommand.php

Lines changed: 454 additions & 0 deletions
Large diffs are not rendered by default.

core/src/Providers/ArtisanServiceProvider.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class ArtisanServiceProvider extends ServiceProvider
7272
'InstallPackageAutoload' => 'command.packages.installautoload',
7373
'UpdateTree' => 'command.updatetree',
7474
'SiteUpdate' => 'command.siteupdate',
75+
'TranslationsSync' => 'command.translations.sync',
7576
'Extras' => 'command.extras',
7677
'RouteList' => 'command.route.list',
7778
];
@@ -452,6 +453,19 @@ protected function registerSiteUpdateCommand()
452453
return new Console\SiteUpdateCommand();
453454
});
454455
}
456+
457+
/**
458+
* Register the command.
459+
*
460+
* @return void
461+
*/
462+
protected function registerTranslationsSyncCommand()
463+
{
464+
$this->app->singleton('command.translations.sync', function () {
465+
return new \EvolutionCMS\Console\TranslationsSyncCommand();
466+
});
467+
}
468+
455469
/**
456470
* Register the command.
457471
*

install/src/controllers/summary.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ function f_owc($path, $data, $mode = null)
264264
} else {
265265
echo $_lang['error'] . $_lang['please_correct_error'] . $_lang['and_try_again'];
266266
}
267-
268-
echo $_lang['visit_forum'];
267+
echo str_replace('[+support_forum_link_tag+]',
268+
'<a href="https://forum.evo.im/" target="_blank">Evolution CMS Forum</a>', $_lang['visit_forum']);
269269
echo '</p>';
270270
}
271271

@@ -318,7 +318,11 @@ function f_owc($path, $data, $mode = null)
318318
<p class="agreeHolder">
319319
<input type="checkbox" value="1" id="chkagree" name="chkagree"
320320
<?php echo isset($_POST['chkagree']) ? 'checked="checked" ' : ''; ?><?php echo $agreeToggle; ?>/>
321-
<label for="chkagree"> <?php echo $_lang['iagree_box'] ?> </label>
321+
<label for="chkagree"> <?php echo str_replace(['[+license_file_link_tag+]','[+license_link_tag+]'],
322+
['<a href="../assets/docs/license.txt" target="_blank">Evolution CMS license (GNU GPL v3)</a>',
323+
'<a href="https://www.gnu.org/licenses/translations.html" target="_blank">GNU.org</a>,
324+
<a href="https://wikipedia.org/wiki/GNU_General_Public_License" target="_blank">Wikipedia</a>'],
325+
$_lang['iagree_box']) ?> </label>
322326
</p>
323327
<p class="buttonlinks">
324328
<a class="prev" title="<?php echo $_lang['btnback_value'] ?>"><span><?php echo $_lang['btnback_value'] ?></span></a>

install/src/functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function ph()
114114
$ph['footer1'] = $_lang['modx_footer1'];
115115
$ph['footer2'] = $_lang['modx_footer2'];
116116
$ph['current_year'] = date('Y');
117+
$ph['vendor_link_tag'] = '<a href="https://evo.im/">Evolution CMS</a>';
117118
$ph['csrf_nonce'] = csrfNonce();
118119

119120
return $ph;

install/src/lang/az.inc.php

Lines changed: 203 additions & 203 deletions
Large diffs are not rendered by default.

install/src/lang/be.inc.php

Lines changed: 204 additions & 205 deletions
Large diffs are not rendered by default.

install/src/lang/bg.inc.php

Lines changed: 203 additions & 195 deletions
Large diffs are not rendered by default.

install/src/lang/cs.inc.php

Lines changed: 203 additions & 195 deletions
Large diffs are not rendered by default.

install/src/lang/da.inc.php

Lines changed: 203 additions & 196 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)