1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-04 10:34:45 +02:00

fixing language error

This commit is contained in:
Patrik J. Braun 2018-03-30 17:59:43 -04:00
parent 17884c953e
commit 7e425fc54e
5 changed files with 1301 additions and 6 deletions

View File

@ -4,7 +4,7 @@
.dark {
background-color: #222;
color: #FFF;
color: #9d9d9d;
border-color: transparent;
}

View File

@ -20,6 +20,7 @@
class="form-control"
i18n-placeholder
placeholder="Username"
autocomplete="login-username"
autofocus
[(ngModel)]="loginCredential.username"
name="username" required>
@ -32,6 +33,7 @@
type="password"
[(ngModel)]="loginCredential.password"
name="password"
autocomplete="login-password"
i18n-placeholder
placeholder="Password"
required>

File diff suppressed because it is too large Load Diff

View File

@ -988,7 +988,7 @@
</context-group>
<target>Ha kézzel szeretné indítani az indexelést, kattintson az index gombra.</target>
</trans-unit>
<trans-unit id="9061efbc0c389083e0652206d2b92c8aa68bc722" datatype="html">
<trans-unit id="56949ecea1cfe94dcd1a269282c047549cda1de8" datatype="html">
<source>Note: search only works among the indexed directories</source>
<context-group purpose="location">
<context context-type="sourcefile">app/settings/indexing/indexing.settings.component.ts</context>
@ -1257,4 +1257,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>

View File

@ -30,7 +30,8 @@ var createFrontendTask = function (type, script) {
gulp.task('build-frontend', function (done) {
var languages = getLanguages();
var tasks = [];
createFrontendTask('build-frontend-release default', "ng build --aot -prod --output-path=./release/dist --no-progress");
createFrontendTask('build-frontend-release default', "ng build --aot -prod --output-path=./release/dist --no-progress --locale=en" +
" --i18n-format xlf --i18n-file frontend/" + translationFolder + "/messages.en.xlf" + " --missing-translation warning");
tasks.push('build-frontend-release default');
for (var i = 0; i < languages.length; i++) {
createFrontendTask('build-frontend-release ' + languages[i], "ng build --aot -prod --output-path=./release/dist/" + languages[i] + " --no-progress --locale=" + languages[i] +
@ -89,6 +90,8 @@ var getLanguages = function () {
});
return files.map(function (f) {
return f.split(".")[1]
}).filter(function (l) {
return l !== "en";
});
};
@ -96,11 +99,12 @@ var simpleBuild = function (isProd) {
return function (done) {
var languages = getLanguages();
var tasks = [];
var cmd = "ng build ";
var cmd = "ng build --aot ";
if (isProd) {
cmd += " -prod "
}
createFrontendTask('build-frontend default', cmd + "--output-path=./dist --no-progress");
createFrontendTask('build-frontend default', cmd + "--output-path=./dist --no-progress --no-progress --locale en" +
" --i18n-format=xlf --i18n-file=frontend/" + translationFolder + "/messages.en.xlf" + " --missing-translation warning");
tasks.push('build-frontend default');
for (var i = 0; i < languages.length; i++) {
createFrontendTask('build-frontend ' + languages[i], cmd + "--output-path=./dist/" + languages[i] + " --no-progress --locale " + languages[i] +