0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-04-17 18:42:44 +00:00

Translation cleanup ()

* use correct translation key
* de-duplicate translation
This commit is contained in:
Kevin Papst 2025-02-21 20:50:49 +01:00 committed by GitHub
parent 04cb403ea9
commit cce49cc409
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 31 additions and 169 deletions

18
UPGRADING-3.md Normal file
View file

@ -0,0 +1,18 @@
# Upgrading Kimai - Version 3.x
_Make sure to create a backup before you start!_
Read the [updates documentation](https://www.kimai.org/documentation/updates.html) to find out how you can upgrade your Kimai installation to the latest stable release.
Check below if there are more version specific steps required, which need to be executed after the normal update process.
Perform EACH version specific task between your version and the new one, otherwise you risk data inconsistency or a broken installation.
## 3.0
**!! This release requires minimum PHP version 8.4 !!**
### Developer
Removed translations:
- `action.edit`: use `edit` instead
- `my.profile`: use `user_profile` instead

View file

@ -1,4 +1,4 @@
# Upgrading Kimai - Version2.x
# Upgrading Kimai - Version 2.x
_Make sure to create a backup before you start!_

View file

@ -43,10 +43,10 @@ class UserDetailsSubscriber implements EventSubscriberInterface
$event->setUser($user);
if ($this->auth->isGranted('view', $user)) {
$event->addLink(new MenuItemModel('user_profile', 'my.profile', 'user_profile', ['username' => $user->getUserIdentifier()]));
$event->addLink(new MenuItemModel('user_profile', 'user_profile', 'user_profile', ['username' => $user->getUserIdentifier()]));
}
if ($this->auth->isGranted('edit', $user)) {
$event->addLink(new MenuItemModel('user_profile_edit', 'action.edit', 'user_profile_edit', ['username' => $user->getUserIdentifier()]));
$event->addLink(new MenuItemModel('user_profile_edit', 'edit', 'user_profile_edit', ['username' => $user->getUserIdentifier()]));
}
if ($this->auth->isGranted('password', $user)) {
$event->addLink(new MenuItemModel('password', 'profile.password', 'user_profile_password', ['username' => $user->getUserIdentifier()]));

View file

@ -71,7 +71,7 @@ class MultiUpdateTableDTO
public function addUpdate(string $url): MultiUpdateTableDTO
{
$this->actions['action.edit'] = $url;
$this->actions['edit'] = $url;
return $this;
}

View file

@ -18,7 +18,7 @@
{% endblock %}
{% block box_tools %}
{% if can_edit %}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_activity_edit', {'id': activity.id})}) }}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'edit', 'url': path('admin_activity_edit', {'id': activity.id})}) }}
{% endif %}
{% endblock %}
{% block box_body_class %}p-0{% endblock %}

View file

@ -12,7 +12,7 @@
{% set warningMsg %}
{{ 'work_times_should.none_configured'|trans }}
{% if is_granted('contract', user) %}
<a href="{{ path('user_profile_contract', {'username': user.getUserIdentifier()}) }}" class="alert-link">{{ 'action.edit'|trans }}</a>
<a href="{{ path('user_profile_contract', {'username': user.getUserIdentifier()}) }}" class="alert-link">{{ 'edit'|trans }}</a>
{% endif %}
{% endset %}
{% from '@theme/components/alert.html.twig' import alert %}

View file

@ -13,7 +13,7 @@
{% endblock %}
{% block box_tools %}
{% if can_edit %}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_customer_edit', {'id': customer.id})}) }}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'edit', 'url': path('admin_customer_edit', {'id': customer.id})}) }}
{% endif %}
{% endblock %}
{% block box_body_class %}p-0{% endblock %}

View file

@ -14,7 +14,7 @@
{{ widgets.card_tool_button('create', {'title': 'team.create_default', 'translation_domain': 'teams', 'url': route_create}) }}
{% endif %}
{% if route_edit is not null %}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': route_edit}) }}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'edit', 'url': route_edit}) }}
{% endif %}
{% endblock %}
{% block box_attributes %}id="team_listing_box"{% endblock %}

View file

@ -2,7 +2,7 @@
{% block main %}
{{ include(kimai_context.modalRequest ? 'default/_form_modal.html.twig' : 'default/_form.html.twig', {
'title': (role.id ? 'action.edit'|trans : 'create'|trans) ~ ': ' ~ 'user_role.title'|trans,
'title': (role.id ? 'edit'|trans : 'create'|trans) ~ ': ' ~ 'user_role.title'|trans,
'form': form,
'back': path('admin_user_permissions')
}) }}

View file

@ -10,7 +10,7 @@
{% block box_attributes %}id="project_details_box"{% endblock %}
{% block box_tools %}
{% if can_edit %}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_project_edit', {'id': project.id})}) }}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'edit', 'url': path('admin_project_edit', {'id': project.id})}) }}
{% endif %}
{% endblock %}
{% block box_title %}

View file

@ -3,7 +3,7 @@
{% block main %}
{% set formEditTemplate = 'default/_form.html.twig' %}
{% set formOptions = {
'title': 'update_multiple'|trans({'%action%': 'action.edit'|trans, '%count%': dto.entities|length}),
'title': 'update_multiple'|trans({'%action%': 'edit'|trans, '%count%': dto.entities|length}),
'form': form,
'back': path(back),
} %}

View file

@ -42,7 +42,7 @@ class MultiUpdateTableDTOTest extends TestCase
self::assertEquals(
[
'' => '',
'action.edit' => 'foo',
'edit' => 'foo',
'delete' => 'bar',
'test' => 'hello/world'
],

View file

@ -56,7 +56,7 @@ class TimesheetMultiUpdateDTOTest extends TestCase
self::assertEquals(
[
'' => '',
'action.edit' => 'foo',
'edit' => 'foo',
'delete' => 'bar',
'test' => 'hello/world'
],

View file

@ -642,10 +642,6 @@
<source>attachments</source>
<target>ملفات</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">ملفي التعريفي</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>بحث</target>

View file

@ -914,10 +914,6 @@
<source>update_multiple</source>
<target state="translated">%action% %count% záznamů</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Můj profil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Hledat</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Søg</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Min profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% indlæg</target>

View file

@ -90,10 +90,6 @@
<source>orderBy</source>
<target>Sortieren nach</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mein Profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% von %count% Einträgen</target>

View file

@ -890,10 +890,6 @@
<source>update_multiple</source>
<target>%action% von %count% Einträgen</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mein Profil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Suchen</target>

View file

@ -78,10 +78,6 @@
<source>orderBy</source>
<target>Αναδιάταξη με</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Το προφίλ μου</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" xml:space="preserve">
<source>update_multiple</source>
<target state="translated">%action% %count% καταχωρήσεων</target>

View file

@ -90,10 +90,6 @@
<source>orderBy</source>
<target>Order by</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>My profile</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% entries</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target>Serĉi</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mia profilo</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% elementojn</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Buscar</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mi perfil</target>
</trans-unit>
<trans-unit id="XohImNo" resname="password" approved="yes">
<source>Password</source>
<target state="final">Contraseña</target>

View file

@ -114,10 +114,6 @@
<source>desc</source>
<target state="translated">Kahanev</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile" xml:space="preserve">
<source>my.profile</source>
<target state="translated">Minu profiil</target>
</trans-unit>
<trans-unit id="OTDmccn" resname="attachments" xml:space="preserve">
<source>attachments</source>
<target state="translated">Fail</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Bilatu</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Nire kontua</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% sarrera</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target>جستجو</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>پروفایل من</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" xml:space="preserve">
<source>update_multiple</source>
<target state="needs-translation">%action% %count% ورودی ها؟</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target state="translated">Etsi</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">Oma profiili</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target state="translated">%action% %count% tapahtumaa</target>

View file

@ -346,10 +346,6 @@
<source>entryState.not_exported</source>
<target>Opið</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mín vangi</target>
</trans-unit>
<trans-unit id="VSo_gmO" resname="orderBy">
<source>orderBy</source>
<target>Raðfest eftir</target>

View file

@ -802,10 +802,6 @@
<source>update_multiple</source>
<target>%action% %count% entrées</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mon profil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Rechercher</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target>חיפוש</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>הפרופיל שלי</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" xml:space="preserve" approved="yes">
<source>update_multiple</source>
<target state="final">%count% רשומות %action%</target>

View file

@ -78,10 +78,6 @@
<source>orderBy</source>
<target>Redoslijed</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Moj profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% unosa</target>

View file

@ -714,10 +714,6 @@
<source>attachments</source>
<target>Fájlok</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Profilom</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Keresés</target>

View file

@ -218,10 +218,6 @@
<source>file</source>
<target state="translated">Berkas</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">Profil saya</target>
</trans-unit>
<trans-unit id="T4nAM7X" resname="api_token" xml:space="preserve">
<source>api_token</source>
<target state="translated">Kata sandi API</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target state="final">Cerca</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile" approved="yes">
<source>my.profile</source>
<target state="final">Il mio profilo</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" approved="yes">
<source>update_multiple</source>
<target state="final">%action% %count% voci</target>

View file

@ -710,10 +710,6 @@
<source>orderBy</source>
<target state="translated">並べ替え</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">プロフィール</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target state="translated">%count%個のエントリーを%action%しますか</target>

View file

@ -754,10 +754,6 @@
<source>attachments</source>
<target>파일</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>내 프로필</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>찾기</target>

View file

@ -58,10 +58,6 @@
<source>orderBy</source>
<target>Sorter etter</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Min profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% oppføringer</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Zoeken</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mijn profiel</target>
</trans-unit>
<trans-unit id="XohImNo" resname="password">
<source>Password</source>
<target state="translated">Wachtwoord</target>

View file

@ -162,10 +162,6 @@
<source>file</source>
<target state="translated">ਫਾਈਲ</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">ਮੇਰੀ ਪ੍ਰੋਫਾਈਲ</target>
</trans-unit>
<trans-unit id="xEuy.VF" resname="comment">
<source>comment</source>
<target state="translated">ਟਿੱਪਣੀ</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Szukaj</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Mój profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% wpisy</target>

View file

@ -898,10 +898,6 @@
<source>update_multiple</source>
<target>%action% %count% entradas</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Meu perfil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Pesquisar</target>

View file

@ -702,10 +702,6 @@
<source>attachments</source>
<target>Arquivos</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Meu perfil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Procurar</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target>Caută</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Profilul meu</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% intrări</target>

View file

@ -710,10 +710,6 @@
<source>attachments</source>
<target>Файлы</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Мой профиль</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Поиск</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>Hľadať</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Môj profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% záznamov</target>

View file

@ -98,10 +98,6 @@
<source>asc</source>
<target state="translated">Naraščajoče</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">Moj profil</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target state="translated">%action% %count% vnosov</target>

View file

@ -758,10 +758,6 @@
<source>attachments</source>
<target>Filer</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Min profil</target>
</trans-unit>
<trans-unit id="JBkykGe" resname="search">
<source>search</source>
<target>Sök</target>

View file

@ -554,10 +554,6 @@
<source>orderBy</source>
<target state="translated">இதால் அடுக்கு</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile" xml:space="preserve" approved="no">
<source>my.profile</source>
<target state="translated">தன் விவரக்குறிப்பு</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" xml:space="preserve" approved="no">
<source>update_multiple</source>
<target state="translated">%action%%count% உள்ளீடுகள்</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target state="translated">Ara</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">Profilim</target>
</trans-unit>
<trans-unit id="XohImNo" resname="password">
<source>Password</source>
<target state="translated">Parola</target>

View file

@ -162,10 +162,6 @@
<source>remove_default</source>
<target state="translated">Видалити обране в пошуку</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target state="translated">Мій профіль</target>
</trans-unit>
<trans-unit id="0M_Gylq" resname="rates.empty">
<source>rates.empty</source>
<target state="translated">Розцінки ще не додано.</target>

View file

@ -54,10 +54,6 @@
<source>search</source>
<target>Tìm kiếm</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>Thông tin của tôi</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% giá trị</target>

View file

@ -50,10 +50,6 @@
<source>search</source>
<target>搜索</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile">
<source>my.profile</source>
<target>我的资料</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple">
<source>update_multiple</source>
<target>%action% %count% 条目</target>

View file

@ -82,10 +82,6 @@
<source>orderBy</source>
<target state="final">排序依據</target>
</trans-unit>
<trans-unit id="hBNESu6" resname="my.profile" xml:space="preserve" approved="yes">
<source>my.profile</source>
<target state="final">我的帳號</target>
</trans-unit>
<trans-unit id="J258iS6" resname="update_multiple" xml:space="preserve" approved="yes">
<source>update_multiple</source>
<target state="final">是否要%action% %count% 條項目</target>