Skip to content

Commit

Permalink
UX: Improve wording in frontend templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lastzero committed Oct 9, 2021
1 parent f3e8d37 commit 67d06fd
Show file tree
Hide file tree
Showing 21 changed files with 439 additions and 372 deletions.
369 changes: 227 additions & 142 deletions frontend/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-formatter-pretty": "^4.1.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-friendly-formatter": "^3.0.0",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
Expand Down Expand Up @@ -91,7 +91,7 @@
"resolve-url-loader": "^3.1.4",
"sass": "^1.36.0",
"sass-loader": "^12.1.0",
"server": "^1.0.34",
"server": "^1.0.36",
"sockette": "^2.0.6",
"style-loader": "^3.1.0",
"svg-url-loader": "^7.1.1",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/component/photo/cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
color="secondary-dark" icon="lightbulb_outline" class="no-results ma-2 opacity-70" outline
>
<h3 v-if="filter.order === 'edited'" class="body-2 ma-0 pa-0">
<translate>Couldn't find recently edited</translate>
<translate>No recently edited pictures</translate>
</h3>
<h3 v-else class="body-2 ma-0 pa-0">
<translate>Couldn't find anything</translate>
<translate>No pictures found</translate>
</h3>
<p class="body-1 mt-2 mb-0 pa-0">
<translate>Try again using other filters or keywords.</translate>
<translate>When a file you expect is missing, please rescan your library and wait until indexing has been completed.</translate>
<translate>In case pictures you expect are missing, please rescan your library and wait until indexing has been completed.</translate>
<template v-if="$config.feature('review')" class="mt-2 mb-0 pa-0">
<translate>Non-photographic and low-quality images require a review before they appear in search results.</translate>
</template>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/component/photo/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
color="secondary-dark" icon="lightbulb_outline" class="no-results ma-2 opacity-70" outline
>
<h3 v-if="filter.order === 'edited'" class="body-2 ma-0 pa-0">
<translate>Couldn't find recently edited</translate>
<translate>No recently edited pictures</translate>
</h3>
<h3 v-else class="body-2 ma-0 pa-0">
<translate>Couldn't find anything</translate>
<translate>No pictures found</translate>
</h3>
<p class="body-1 mt-2 mb-0 pa-0">
<translate>Try again using other filters or keywords.</translate>
<translate>When a file you expect is missing, please rescan your library and wait until indexing has been completed.</translate>
<translate>In case pictures you expect are missing, please rescan your library and wait until indexing has been completed.</translate>
<template v-if="config.settings.features.review" class="mt-2 mb-0 pa-0">
<translate>Non-photographic and low-quality images require a review before they appear in search results.</translate>
</template>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/component/photo/mosaic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
color="secondary-dark" icon="lightbulb_outline" class="no-results ma-2 opacity-70" outline
>
<h3 v-if="filter.order === 'edited'" class="body-2 ma-0 pa-0">
<translate>Couldn't find recently edited</translate>
<translate>No recently edited pictures</translate>
</h3>
<h3 v-else class="body-2 ma-0 pa-0">
<translate>Couldn't find anything</translate>
<translate>No pictures found</translate>
</h3>
<p class="body-1 mt-2 mb-0 pa-0">
<translate>Try again using other filters or keywords.</translate>
<translate>When a file you expect is missing, please rescan your library and wait until indexing has been completed.</translate>
<translate>In case pictures you expect are missing, please rescan your library and wait until indexing has been completed.</translate>
<template v-if="$config.feature('review')" class="mt-2 mb-0 pa-0">
<translate>Non-photographic and low-quality images require a review before they appear in search results.</translate>
</template>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
PhotoPrism uses [gettext](https://en.wikipedia.org/wiki/Gettext) for localizing frontend and backend.
It's one of the most widely adopted standards for translating user interfaces.

Human readable messages like `File not found` are used as ids for finding matching translations,
Human-readable messages like `File not found` are used as ids for finding matching translations,
and used as defaults whenever there is no translation available.

Messages may optionally contain placeholders, like `Found %{n} files`, for numbers and
Messages may optionally contain placeholders, like `%{n} files found`, for numbers and
other variables.

We strongly recommend [Poedit](https://poedit.net/download) for creating and updating translations.
Expand Down
Binary file modified frontend/src/locales/de.mo
Binary file not shown.

0 comments on commit 67d06fd

Please sign in to comment.