Skip to content

Commit f820ab9

Browse files
committed
Code style fixes in translations
1 parent d9d17d3 commit f820ab9

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

src/Controller/Dashboard/DashboardRegistryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function configureFields(string $pageName): iterable
7171
->setRequired(true)
7272
->setChoices(RegistryPackageMirroring::cases())
7373
->setFormTypeOption('choice_label', function (RegistryPackageMirroring $choice): string {
74-
return "registry.package_mirroring.{$choice->value}";
74+
return "registry.package-mirroring.{$choice->value}";
7575
})
7676
->renderExpanded();
7777

src/Form/PackageFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function onPostSetData(PostSetDataEvent $event): void
7474
'expanded' => true,
7575
'disabled' => !$package->getRepositoryUrl(),
7676
'choice_label' => function (PackageFetchStrategy $choice): string {
77-
return "package.fetch_strategy.{$choice->value}";
77+
return "package.fetch-strategy.{$choice->value}";
7878
},
7979
]);
8080
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ "registry.package_mirroring.#{field.value.value}"|trans }}
1+
{{ "registry.package-mirroring.#{field.value.value}"|trans }}

translations/messages.en.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# General strings
12
Account: Account
23
Administration: Administration
34
Credits: Credits
@@ -14,6 +15,7 @@ Statistics: Statistics
1415
Suggesters: Suggesters
1516
Usage: Usage
1617

18+
# Entity names
1719
Access token: Access token
1820
Access tokens: Access tokens
1921
Credentials: Credentials
@@ -23,14 +25,15 @@ User: User
2325
Users: Users
2426
Versions: Versions
2527

28+
# Form labels
2629
Current password: Current password
2730
Description: Description
28-
Dynamic Update Delay: Dynamic Update Delay
31+
Dynamic Update Delay: Dynamic update delay
2932
Email: Email
3033
Expires At: Expires at
3134
New password: New password
3235
Name: Name
33-
Package Mirroring: Package Mirroring
36+
Package Mirroring: Package mirroring
3437
Password: Password
3538
Repeat new password: Repeat new password
3639
Repository url: Repository URL
@@ -40,35 +43,40 @@ Type: Type
4043
URL: URL
4144
Username: Username
4245

43-
Impersonate: Impersonate
44-
Move Down: Move Down
45-
Move Up: Move Up
46-
46+
# Form placeholders
4747
No credentials: No credentials
4848
Search packages: Search packages
4949

50+
# Page actions
51+
Impersonate: Impersonate
52+
Move Down: Move down
53+
Move Up: Move up
54+
55+
# Statistics labels
5056
Daily installations: Daily installations
5157
Daily installations per version: Daily installations per version
5258
Installations: Installations
5359
Last 30 days: Last 30 days
5460
Today: Today
5561
Total: Total
5662

63+
# User roles
5764
Admin: Admin
5865
Owner: Owner
5966

67+
# Enums
6068
credentials:
6169
type:
6270
http-basic: HTTP Basic credentials
6371
github-oauth: GitHub personal access token
6472
gitlab-dt: GitLab deploy token
6573
gitlab-pat: GitLab personal access token
6674
package:
67-
fetch_strategy:
75+
fetch-strategy:
6876
mirror: Fetch from mirror registry
6977
vcs: Fetch directly from VCS
7078
registry:
71-
package_mirroring:
79+
package-mirroring:
7280
none: Package mirroring disabled
7381
manual: Only mirror specified packages
7482
auto: Automatically mirror packages on request

0 commit comments

Comments
 (0)