Translation of button names #157
Replies: 4 comments 5 replies
-
Good Idea. I prefer laravel-lang/actions; we can add a lot with this name, unlike laravel-lang/buttons. |
Beta Was this translation helpful? Give feedback.
-
Yeah, 'actions' name is more general. I think it's commonly used for admin panels but also can be useful in other contexts in projects. |
Beta Was this translation helpful? Give feedback.
-
From my practice, I suggest starting with such an array of names, and also doing them not only in PHP format, but also in JSON for ease of use: return [
'accept' => 'Accept',
'action' => 'Action',
'actions' => 'Actions',
'add' => 'Add',
'admin' => 'Admin',
'agree' => 'Agree',
'archive' => 'Archive',
'assign' => 'Assign',
'attach' => 'Attach',
'browse' => 'Browse',
'cancel' => 'Cancel',
'choose' => 'Choose',
'choose_file' => 'Choose File',
'choose_image' => 'Choose Image',
'close' => 'Close',
'confirm' => 'Confirm',
'connect' => 'Connect',
'create' => 'Create',
'delete' => 'Delete',
'detach' => 'Detach',
'details' => 'Details',
'disable' => 'Disable',
'discard' => 'Discard',
'done' => 'Done',
'down' => 'Down',
'duplicate' => 'Duplicate',
'edit' => 'Edit',
'enable' => 'Enable',
'export' => 'Export',
'file' => 'File',
'files' => 'Files',
'go_home' => 'Go Home',
'hide' => 'Hide',
'home' => 'Home',
'image' => 'Image',
'Impersonate' => 'Impersonate',
'Impersonation' => 'Impersonation',
'import' => 'Import',
'load' => 'Load',
'localize' => 'Localize',
'new' => 'New',
'no' => 'No',
'open' => 'Open',
'open_website' => 'Open on the website',
'preview' => 'Preview',
'restore' => 'Restore',
'save' => 'Save',
'search' => 'Search',
'select' => 'Select',
'select_all' => 'Select All',
'settings' => 'Settings',
'show' => 'Show',
'solve' => 'Solve',
'translate_it' => 'Translate it',
'unpack' => 'Unpack',
'up' => 'Up',
'update' => 'Update',
'user' => 'User',
'view' => 'View',
'yes' => 'Yes',
'named' => [
'choose' => 'Choose :name',
'edit' => 'Edit :name',
'hide' => 'Hide :name',
'import' => 'Import :name',
'new' => 'New :name',
'restore' => 'Restore :name',
'save' => 'Save :name',
'show' => 'Show :name',
'update' => 'Update :name',
'view' => 'View :name',
'duplicate' => 'Duplicate: name',
'search' => 'Search :name',
],
]; I did not post it in JSON form, because... the keys will be the same. |
Beta Was this translation helpful? Give feedback.
-
I just stumbled upon this package by accident. I'd really like to improve the German ones, but I have some questions.
Is this package being used by Laravel itself, any Laravel package or any 3rd-party package? |
Beta Was this translation helpful? Give feedback.
-
@Laravel-Lang/laravel-lang, hey!
I had an idea to create another project in which we can add names for interface buttons.
In this regard, I had a question: what is better to name the project -
laravel-lang/actions
orlaravel-lang/buttons
?To understand the context, I found a screenshot on the Internet with an example of such buttons. Of course, there will be more of them in the project and those that can be used in real projects.
When installing a dependency, you can save the values both in a JSON file and in PHP:
What do you think about this idea?
Beta Was this translation helpful? Give feedback.
All reactions