mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
improving translations
This commit is contained in:
parent
03ef5988f0
commit
0efd28c10f
@ -27,13 +27,15 @@
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<div class="details-main">
|
||||
{{getDate()}}
|
||||
<ng-container *ngIf="getYear() !== getCurrentYear()">
|
||||
,{{getYear()}}
|
||||
{{ photo.metadata.creationDate | date :'longDate'}}
|
||||
</ng-container>
|
||||
<ng-container *ngIf="getYear() === getCurrentYear()">
|
||||
{{ photo.metadata.creationDate | date :'MMMM d'}}
|
||||
</ng-container>
|
||||
</div>
|
||||
<div class="details-sub row">
|
||||
<div class="col-12">{{getDay()}}, {{getTime()}}</div>
|
||||
<div class="col-12">{{ photo.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -35,27 +35,12 @@ export class InfoPanelLightboxComponent {
|
||||
return (new Date()).getFullYear();
|
||||
}
|
||||
|
||||
getYear() {
|
||||
const date = new Date(this.photo.metadata.creationDate);
|
||||
return date.getFullYear();
|
||||
}
|
||||
|
||||
getDate() {
|
||||
const date = new Date(this.photo.metadata.creationDate);
|
||||
const locale = 'en-us';
|
||||
return date.toLocaleString(locale, {month: 'long'}) + ' ' + date.getDate();
|
||||
}
|
||||
|
||||
getTime() {
|
||||
const date = new Date(this.photo.metadata.creationDate);
|
||||
return date.toTimeString().split(' ')[0];
|
||||
}
|
||||
|
||||
getDay() {
|
||||
const date = new Date(this.photo.metadata.creationDate);
|
||||
const locale = 'en-us';
|
||||
return date.toLocaleString(locale, {weekday: 'long'});
|
||||
}
|
||||
|
||||
toFraction(f) {
|
||||
if (f > 1) {
|
||||
|
@ -94,7 +94,6 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
console.log('destroy');
|
||||
this.pause();
|
||||
if (this.subscription.photosChange != null) {
|
||||
this.subscription.photosChange.unsubscribe();
|
||||
|
@ -44,7 +44,6 @@ export class GalleryMapComponent implements OnChanges, IRenderable, AfterViewIni
|
||||
ngAfterViewInit() {
|
||||
setTimeout(() => {
|
||||
this.height = this.map.nativeElement.clientHeight;
|
||||
console.log(this.height);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" [hidden]="simplifiedMode">
|
||||
<label class="col-md-2 control-label" for="port">Port</label>
|
||||
<label class="col-md-2 control-label" for="port" i18n>Port</label>
|
||||
<div class="col-md-10">
|
||||
<input type="number" class="form-control" placeholder="80"
|
||||
id="port"
|
||||
@ -31,7 +31,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 control-label" for="folder">Images folder</label>
|
||||
<label class="col-md-2 control-label" for="folder" i18n>Images folder</label>
|
||||
<div class="col-md-10">
|
||||
<input type="text" class="form-control" placeholder="path"
|
||||
id="folder"
|
||||
|
@ -61,7 +61,7 @@
|
||||
<hr/>
|
||||
</ng-container>
|
||||
|
||||
<ng-container i18n>If you add a new folder to your gallery, the site indexes it automatically.</ng-container>
|
||||
<ng-container i18n>If you add a new folder to your gallery, the site indexes it automatically.</ng-container>
|
||||
<ng-container i18n>If you would like to trigger indexing manually, click index button.</ng-container>
|
||||
<br/>
|
||||
(
|
||||
|
@ -21,7 +21,7 @@ export class IndexingSettingsComponent extends SettingsComponent<IndexingConfig,
|
||||
implements OnInit, OnDestroy {
|
||||
|
||||
|
||||
types: Array<any> = [];
|
||||
types: { key: number; value: string }[] = [];
|
||||
private subscription: { timer: any, settings: any } = {
|
||||
timer: null,
|
||||
settings: null
|
||||
@ -68,6 +68,19 @@ export class IndexingSettingsComponent extends SettingsComponent<IndexingConfig,
|
||||
super.ngOnInit();
|
||||
this.types = Utils
|
||||
.enumToArray(ReIndexingSensitivity);
|
||||
this.types.forEach(v => {
|
||||
switch (v.value) {
|
||||
case 'low':
|
||||
v.value = this.i18n('low');
|
||||
break;
|
||||
case 'medium':
|
||||
v.value = this.i18n('medium');
|
||||
break;
|
||||
case 'high':
|
||||
v.value = this.i18n('high');
|
||||
break;
|
||||
}
|
||||
});
|
||||
this.updateProgress();
|
||||
}
|
||||
|
||||
|
@ -29,11 +29,10 @@
|
||||
[disabled]="!settings.enabled"
|
||||
name="googleApiKey" id="googleApiKey" required>
|
||||
<small class="form-text text-muted">
|
||||
<ng-container i18n>To show the images on a map,</ng-container>
|
||||
<a
|
||||
href="https://developers.google.com/maps/documentation/javascript/get-api-key" i18n>google api key</a> <ng-container
|
||||
i18n>is need
|
||||
</ng-container>
|
||||
<ng-container i18n>To show the images on a map,</ng-container>
|
||||
<a href="https://developers.google.com/maps/documentation/javascript/get-api-key"
|
||||
i18n>google api key</a>
|
||||
<ng-container i18n>is need.</ng-container>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -492,21 +492,20 @@
|
||||
</context-group>
|
||||
<target>google api key</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="9f95b2d6482e4552e6d575ecffb94cbdb7e52cfe" datatype="html">
|
||||
<source>is need
|
||||
</source>
|
||||
<trans-unit id="86a1216cdfe7002796280c5541f0b9f765efae78" datatype="html">
|
||||
<source>is need.</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">35</context>
|
||||
</context-group>
|
||||
<target>is need</target>
|
||||
<target>is need.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="d682be8fc94c1861394919e021e9dcf8def8f554" datatype="html">
|
||||
<source>Save
|
||||
</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">43</context>
|
||||
<context context-type="linenumber">42</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/thumbnail/thumbanil.settings.component.ts</context>
|
||||
@ -535,7 +534,7 @@
|
||||
</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">46</context>
|
||||
<context context-type="linenumber">45</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/thumbnail/thumbanil.settings.component.ts</context>
|
||||
@ -795,6 +794,14 @@
|
||||
</context-group>
|
||||
<target>Page title</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="cb2741a46e3560f6bc6dfd99d385e86b08b26d72" datatype="html">
|
||||
<source>Port</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/basic/basic.settings.component.ts</context>
|
||||
<context context-type="linenumber">20</context>
|
||||
</context-group>
|
||||
<target>Port</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="0559356d4e98ee90a10ff16250a2bf139eac649b" datatype="html">
|
||||
<source>Port number. Port 80 is usually what you need.</source>
|
||||
<context-group purpose="location">
|
||||
@ -803,6 +810,14 @@
|
||||
</context-group>
|
||||
<target>Port number. Port 80 is usually what you need.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="50c6dfe7491fc0710eafbc2781138fc213ee2168" datatype="html">
|
||||
<source>Images folder</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/basic/basic.settings.component.ts</context>
|
||||
<context context-type="linenumber">34</context>
|
||||
</context-group>
|
||||
<target>Images folder</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="b4b17c583a52ad8b6b15882c46d04ddbd7335816" datatype="html">
|
||||
<source>Images are loaded from this folder (read permission required)</source>
|
||||
<context-group purpose="location">
|
||||
@ -973,8 +988,7 @@
|
||||
<context context-type="sourcefile">app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">19</context>
|
||||
</context-group>
|
||||
<target>If there was no indexing in this time, it reindexes. (skipped if
|
||||
indexes are in DB and sensitivity is low)</target>
|
||||
<target>If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low)</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="95cda683cfb2041ad808023f29e40d16981b3c5e" datatype="html">
|
||||
<source>Sub folder preview size</source>
|
||||
@ -1274,6 +1288,30 @@
|
||||
</context-group>
|
||||
<target>Indexing</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="03b2c27d0f1dd0ebdf6eb756bd43914d5127ca8a" datatype="html">
|
||||
<source>low</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>low</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="c611dbfd81ae6fd4d7e5332f85ee78f9740fe000" datatype="html">
|
||||
<source>medium</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>medium</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="fef2f6e70c3eaa2f29dbec8069e13bca1b75b222" datatype="html">
|
||||
<source>high</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>high</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="f2504b9d9286a871bf4d56d08df05d6a16894592" datatype="html">
|
||||
<source>Folder indexed</source>
|
||||
<context-group purpose="location">
|
||||
|
@ -221,7 +221,7 @@
|
||||
<context context-type="sourcefile">app/gallery/share/share.gallery.component.ts</context>
|
||||
<context context-type="linenumber">29</context>
|
||||
</context-group>
|
||||
<target>Másolat</target>
|
||||
<target>Másolás</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="07867d2c08ad81d9f1cb27f083c5d32d0d1f3bd6" datatype="html">
|
||||
<source>Sharing:</source>
|
||||
@ -277,7 +277,7 @@
|
||||
<context context-type="sourcefile">app/gallery/share/share.gallery.component.ts</context>
|
||||
<context context-type="linenumber">98</context>
|
||||
</context-group>
|
||||
<target>hónapok</target>
|
||||
<target>Hónapok</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="ac9751501a838bfb31f23e94ceb9616fe498a267" datatype="html">
|
||||
<source>
|
||||
@ -492,21 +492,20 @@
|
||||
</context-group>
|
||||
<target>google api kulcsra</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="9f95b2d6482e4552e6d575ecffb94cbdb7e52cfe" datatype="html">
|
||||
<source>is need
|
||||
</source>
|
||||
<trans-unit id="86a1216cdfe7002796280c5541f0b9f765efae78" datatype="html">
|
||||
<source>is need.</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">35</context>
|
||||
</context-group>
|
||||
<target>szükség van</target>
|
||||
<target>szükség van.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="d682be8fc94c1861394919e021e9dcf8def8f554" datatype="html">
|
||||
<source>Save
|
||||
</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">43</context>
|
||||
<context context-type="linenumber">42</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/thumbnail/thumbanil.settings.component.ts</context>
|
||||
@ -535,7 +534,7 @@
|
||||
</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/map/map.settings.component.ts</context>
|
||||
<context context-type="linenumber">46</context>
|
||||
<context context-type="linenumber">45</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/thumbnail/thumbanil.settings.component.ts</context>
|
||||
@ -795,6 +794,14 @@
|
||||
</context-group>
|
||||
<target>Oldal címe</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="cb2741a46e3560f6bc6dfd99d385e86b08b26d72" datatype="html">
|
||||
<source>Port</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/basic/basic.settings.component.ts</context>
|
||||
<context context-type="linenumber">20</context>
|
||||
</context-group>
|
||||
<target>Port</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="0559356d4e98ee90a10ff16250a2bf139eac649b" datatype="html">
|
||||
<source>Port number. Port 80 is usually what you need.</source>
|
||||
<context-group purpose="location">
|
||||
@ -803,6 +810,14 @@
|
||||
</context-group>
|
||||
<target>Portszám. A 80-as port általában az, amire szükséged van.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="50c6dfe7491fc0710eafbc2781138fc213ee2168" datatype="html">
|
||||
<source>Images folder</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">app/settings/basic/basic.settings.component.ts</context>
|
||||
<context context-type="linenumber">34</context>
|
||||
</context-group>
|
||||
<target>Képek mappa</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="b4b17c583a52ad8b6b15882c46d04ddbd7335816" datatype="html">
|
||||
<source>Images are loaded from this folder (read permission required)</source>
|
||||
<context-group purpose="location">
|
||||
@ -910,7 +925,7 @@
|
||||
<context context-type="sourcefile">app/settings/other/other.settings.component.ts</context>
|
||||
<context context-type="linenumber">47</context>
|
||||
</context-group>
|
||||
<target>Azek a thumbnail-ek nagyobb prioritást kapnak, ami látható a képernyőn</target>
|
||||
<target>Azok a thumbnail-ek nagyobb prioritást kapnak, ami látható a képernyőn</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="1a693eac5c0c9ee65ea4e8db6e097806141e91f5" datatype="html">
|
||||
<source>Lazy image rendering</source>
|
||||
@ -945,7 +960,7 @@
|
||||
<context context-type="sourcefile">app/settings/other/other.settings.component.ts</context>
|
||||
<context context-type="linenumber">89</context>
|
||||
</context-group>
|
||||
<target>Cache-eli a könyvtár tartalmát és a keresési eredményeket a jobb teljesítmény érdekében</target>
|
||||
<target>Cache-eli a könyvtár tartalmát és a keresési eredményeket a gyorsabb betöltés érdekében</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="5e00b6f637f57796ae6ce0bbafedf3849e28a171" datatype="html">
|
||||
<source>
|
||||
@ -973,8 +988,7 @@
|
||||
<context context-type="sourcefile">app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">19</context>
|
||||
</context-group>
|
||||
<target>Ha ebben az időben nem volt indexelés, újraindexet hajt végre. (figyelmen kívül hagyja, ha
|
||||
az érzékenység alacsony)</target>
|
||||
<target>Ha ebben az időben nem volt indexelés, újraindexelést hajt végre. (figyelmen kívül hagyja, ha az érzékenység alacsony)</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="95cda683cfb2041ad808023f29e40d16981b3c5e" datatype="html">
|
||||
<source>Sub folder preview size</source>
|
||||
@ -998,7 +1012,7 @@
|
||||
<context context-type="sourcefile">app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">38</context>
|
||||
</context-group>
|
||||
<target>Mappa indexelése érzékenység</target>
|
||||
<target>Mappa indexelés érzékenysége</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="6f509cb00bac00333d6edb9ba14fd14d145529e5" datatype="html">
|
||||
<source>Set the reindexing sensitivity. High value check the folders for change more often
|
||||
@ -1274,6 +1288,30 @@
|
||||
</context-group>
|
||||
<target>Indexelés</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="03b2c27d0f1dd0ebdf6eb756bd43914d5127ca8a" datatype="html">
|
||||
<source>low</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>alacsony</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="c611dbfd81ae6fd4d7e5332f85ee78f9740fe000" datatype="html">
|
||||
<source>medium</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>közepes</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="fef2f6e70c3eaa2f29dbec8069e13bca1b75b222" datatype="html">
|
||||
<source>high</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">frontend/app/settings/indexing/indexing.settings.component.ts</context>
|
||||
<context context-type="linenumber">1</context>
|
||||
</context-group>
|
||||
<target>magas</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="f2504b9d9286a871bf4d56d08df05d6a16894592" datatype="html">
|
||||
<source>Folder indexed</source>
|
||||
<context-group purpose="location">
|
||||
|
@ -144,7 +144,6 @@ gulp.task("extract-locale", function (cb) {
|
||||
|
||||
var translate = function (list, cb) {
|
||||
var localsStr = '"[\\"' + list.join('\\",\\"') + '\\"]"';
|
||||
console.log(localsStr);
|
||||
exec('xlf-google-translate --source-lang="en" --source-file="./locale.source.xlf" --destination-folder="./frontend/"' +
|
||||
translationFolder + ' --destination-languages=' + localsStr, function (err, stdout, stderr) {
|
||||
console.log(stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user