From 90e06162999c8ec7fa9bcfa391800f7907419d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Fri, 24 Oct 2014 22:51:30 -0400 Subject: [PATCH] Rename Locales and Templates folders to be more consistent --- .scrutinizer.yml | 10 +++++----- app/Core/Template.php | 2 +- app/Core/Translator.php | 6 +++--- app/{Locales => Locale}/da_DK/translations.php | 0 app/{Locales => Locale}/de_DE/translations.php | 0 app/{Locales => Locale}/es_ES/translations.php | 0 app/{Locales => Locale}/fi_FI/translations.php | 0 app/{Locales => Locale}/fr_FR/translations.php | 0 app/{Locales => Locale}/it_IT/translations.php | 0 app/{Locales => Locale}/ja_JP/translations.php | 0 app/{Locales => Locale}/pl_PL/translations.php | 0 app/{Locales => Locale}/pt_BR/translations.php | 0 app/{Locales => Locale}/ru_RU/translations.php | 0 app/{Locales => Locale}/sv_SE/translations.php | 0 app/{Locales => Locale}/th_TH/translations.php | 0 app/{Locales => Locale}/zh_CN/translations.php | 0 app/{Templates => Template}/action_event.php | 0 app/{Templates => Template}/action_index.php | 0 app/{Templates => Template}/action_params.php | 0 app/{Templates => Template}/action_remove.php | 0 app/{Templates => Template}/app_forbidden.php | 0 app/{Templates => Template}/app_index.php | 0 app/{Templates => Template}/app_notfound.php | 0 app/{Templates => Template}/board_assignee.php | 0 app/{Templates => Template}/board_category.php | 0 app/{Templates => Template}/board_edit.php | 0 app/{Templates => Template}/board_index.php | 0 app/{Templates => Template}/board_public.php | 0 app/{Templates => Template}/board_remove.php | 0 app/{Templates => Template}/board_show.php | 0 app/{Templates => Template}/board_task.php | 0 app/{Templates => Template}/category_edit.php | 0 app/{Templates => Template}/category_index.php | 0 app/{Templates => Template}/category_remove.php | 0 app/{Templates => Template}/comment_create.php | 0 app/{Templates => Template}/comment_edit.php | 0 app/{Templates => Template}/comment_forbidden.php | 0 app/{Templates => Template}/comment_remove.php | 0 app/{Templates => Template}/comment_show.php | 0 app/{Templates => Template}/config_about.php | 0 app/{Templates => Template}/config_api.php | 0 app/{Templates => Template}/config_application.php | 0 app/{Templates => Template}/config_board.php | 0 app/{Templates => Template}/config_layout.php | 0 app/{Templates => Template}/config_sidebar.php | 0 app/{Templates => Template}/config_webhook.php | 0 app/{Templates => Template}/event_comment_create.php | 0 app/{Templates => Template}/event_comment_update.php | 0 app/{Templates => Template}/event_subtask_create.php | 0 app/{Templates => Template}/event_subtask_update.php | 0 .../event_task_assignee_change.php | 0 app/{Templates => Template}/event_task_close.php | 0 app/{Templates => Template}/event_task_create.php | 0 app/{Templates => Template}/event_task_move_column.php | 0 .../event_task_move_position.php | 0 app/{Templates => Template}/event_task_open.php | 0 app/{Templates => Template}/event_task_update.php | 0 app/{Templates => Template}/file_new.php | 0 app/{Templates => Template}/file_open.php | 0 app/{Templates => Template}/file_remove.php | 0 app/{Templates => Template}/file_show.php | 0 app/{Templates => Template}/layout.php | 0 .../notification_comment_creation.php | 0 .../notification_comment_update.php | 0 .../notification_file_creation.php | 0 app/{Templates => Template}/notification_footer.php | 0 .../notification_subtask_creation.php | 0 .../notification_subtask_update.php | 0 .../notification_task_assignee_change.php | 0 .../notification_task_close.php | 0 .../notification_task_creation.php | 0 app/{Templates => Template}/notification_task_due.php | 0 .../notification_task_move_column.php | 0 .../notification_task_move_position.php | 0 app/{Templates => Template}/notification_task_open.php | 0 .../notification_task_update.php | 0 app/{Templates => Template}/project_activity.php | 0 app/{Templates => Template}/project_disable.php | 0 app/{Templates => Template}/project_duplicate.php | 0 app/{Templates => Template}/project_edit.php | 0 app/{Templates => Template}/project_enable.php | 0 app/{Templates => Template}/project_events.php | 0 app/{Templates => Template}/project_export.php | 0 app/{Templates => Template}/project_feed.php | 0 app/{Templates => Template}/project_index.php | 0 app/{Templates => Template}/project_layout.php | 0 app/{Templates => Template}/project_new.php | 0 app/{Templates => Template}/project_remove.php | 0 app/{Templates => Template}/project_search.php | 0 app/{Templates => Template}/project_share.php | 0 app/{Templates => Template}/project_show.php | 0 app/{Templates => Template}/project_sidebar.php | 0 app/{Templates => Template}/project_tasks.php | 0 app/{Templates => Template}/project_users.php | 0 app/{Templates => Template}/subtask_create.php | 0 app/{Templates => Template}/subtask_edit.php | 0 app/{Templates => Template}/subtask_remove.php | 0 app/{Templates => Template}/subtask_show.php | 0 app/{Templates => Template}/task_close.php | 0 app/{Templates => Template}/task_comments.php | 0 app/{Templates => Template}/task_details.php | 0 app/{Templates => Template}/task_duplicate.php | 0 app/{Templates => Template}/task_duplicate_project.php | 0 app/{Templates => Template}/task_edit.php | 0 app/{Templates => Template}/task_edit_description.php | 0 app/{Templates => Template}/task_layout.php | 0 app/{Templates => Template}/task_move_project.php | 0 app/{Templates => Template}/task_new.php | 0 app/{Templates => Template}/task_open.php | 0 app/{Templates => Template}/task_public.php | 0 app/{Templates => Template}/task_remove.php | 0 app/{Templates => Template}/task_show.php | 0 app/{Templates => Template}/task_show_description.php | 0 app/{Templates => Template}/task_sidebar.php | 0 app/{Templates => Template}/task_table.php | 0 app/{Templates => Template}/task_time.php | 0 app/{Templates => Template}/task_timesheet.php | 0 app/{Templates => Template}/user_edit.php | 0 app/{Templates => Template}/user_external.php | 0 app/{Templates => Template}/user_index.php | 0 app/{Templates => Template}/user_last.php | 0 app/{Templates => Template}/user_layout.php | 0 app/{Templates => Template}/user_login.php | 0 app/{Templates => Template}/user_new.php | 0 app/{Templates => Template}/user_notifications.php | 0 app/{Templates => Template}/user_password.php | 0 app/{Templates => Template}/user_remove.php | 0 app/{Templates => Template}/user_sessions.php | 0 app/{Templates => Template}/user_show.php | 0 app/{Templates => Template}/user_sidebar.php | 0 docs/translations.markdown | 8 ++++---- scripts/sync-locales.php | 6 +++--- 132 files changed, 16 insertions(+), 16 deletions(-) rename app/{Locales => Locale}/da_DK/translations.php (100%) rename app/{Locales => Locale}/de_DE/translations.php (100%) rename app/{Locales => Locale}/es_ES/translations.php (100%) rename app/{Locales => Locale}/fi_FI/translations.php (100%) rename app/{Locales => Locale}/fr_FR/translations.php (100%) rename app/{Locales => Locale}/it_IT/translations.php (100%) rename app/{Locales => Locale}/ja_JP/translations.php (100%) rename app/{Locales => Locale}/pl_PL/translations.php (100%) rename app/{Locales => Locale}/pt_BR/translations.php (100%) rename app/{Locales => Locale}/ru_RU/translations.php (100%) rename app/{Locales => Locale}/sv_SE/translations.php (100%) rename app/{Locales => Locale}/th_TH/translations.php (100%) rename app/{Locales => Locale}/zh_CN/translations.php (100%) rename app/{Templates => Template}/action_event.php (100%) rename app/{Templates => Template}/action_index.php (100%) rename app/{Templates => Template}/action_params.php (100%) rename app/{Templates => Template}/action_remove.php (100%) rename app/{Templates => Template}/app_forbidden.php (100%) rename app/{Templates => Template}/app_index.php (100%) rename app/{Templates => Template}/app_notfound.php (100%) rename app/{Templates => Template}/board_assignee.php (100%) rename app/{Templates => Template}/board_category.php (100%) rename app/{Templates => Template}/board_edit.php (100%) rename app/{Templates => Template}/board_index.php (100%) rename app/{Templates => Template}/board_public.php (100%) rename app/{Templates => Template}/board_remove.php (100%) rename app/{Templates => Template}/board_show.php (100%) rename app/{Templates => Template}/board_task.php (100%) rename app/{Templates => Template}/category_edit.php (100%) rename app/{Templates => Template}/category_index.php (100%) rename app/{Templates => Template}/category_remove.php (100%) rename app/{Templates => Template}/comment_create.php (100%) rename app/{Templates => Template}/comment_edit.php (100%) rename app/{Templates => Template}/comment_forbidden.php (100%) rename app/{Templates => Template}/comment_remove.php (100%) rename app/{Templates => Template}/comment_show.php (100%) rename app/{Templates => Template}/config_about.php (100%) rename app/{Templates => Template}/config_api.php (100%) rename app/{Templates => Template}/config_application.php (100%) rename app/{Templates => Template}/config_board.php (100%) rename app/{Templates => Template}/config_layout.php (100%) rename app/{Templates => Template}/config_sidebar.php (100%) rename app/{Templates => Template}/config_webhook.php (100%) rename app/{Templates => Template}/event_comment_create.php (100%) rename app/{Templates => Template}/event_comment_update.php (100%) rename app/{Templates => Template}/event_subtask_create.php (100%) rename app/{Templates => Template}/event_subtask_update.php (100%) rename app/{Templates => Template}/event_task_assignee_change.php (100%) rename app/{Templates => Template}/event_task_close.php (100%) rename app/{Templates => Template}/event_task_create.php (100%) rename app/{Templates => Template}/event_task_move_column.php (100%) rename app/{Templates => Template}/event_task_move_position.php (100%) rename app/{Templates => Template}/event_task_open.php (100%) rename app/{Templates => Template}/event_task_update.php (100%) rename app/{Templates => Template}/file_new.php (100%) rename app/{Templates => Template}/file_open.php (100%) rename app/{Templates => Template}/file_remove.php (100%) rename app/{Templates => Template}/file_show.php (100%) rename app/{Templates => Template}/layout.php (100%) rename app/{Templates => Template}/notification_comment_creation.php (100%) rename app/{Templates => Template}/notification_comment_update.php (100%) rename app/{Templates => Template}/notification_file_creation.php (100%) rename app/{Templates => Template}/notification_footer.php (100%) rename app/{Templates => Template}/notification_subtask_creation.php (100%) rename app/{Templates => Template}/notification_subtask_update.php (100%) rename app/{Templates => Template}/notification_task_assignee_change.php (100%) rename app/{Templates => Template}/notification_task_close.php (100%) rename app/{Templates => Template}/notification_task_creation.php (100%) rename app/{Templates => Template}/notification_task_due.php (100%) rename app/{Templates => Template}/notification_task_move_column.php (100%) rename app/{Templates => Template}/notification_task_move_position.php (100%) rename app/{Templates => Template}/notification_task_open.php (100%) rename app/{Templates => Template}/notification_task_update.php (100%) rename app/{Templates => Template}/project_activity.php (100%) rename app/{Templates => Template}/project_disable.php (100%) rename app/{Templates => Template}/project_duplicate.php (100%) rename app/{Templates => Template}/project_edit.php (100%) rename app/{Templates => Template}/project_enable.php (100%) rename app/{Templates => Template}/project_events.php (100%) rename app/{Templates => Template}/project_export.php (100%) rename app/{Templates => Template}/project_feed.php (100%) rename app/{Templates => Template}/project_index.php (100%) rename app/{Templates => Template}/project_layout.php (100%) rename app/{Templates => Template}/project_new.php (100%) rename app/{Templates => Template}/project_remove.php (100%) rename app/{Templates => Template}/project_search.php (100%) rename app/{Templates => Template}/project_share.php (100%) rename app/{Templates => Template}/project_show.php (100%) rename app/{Templates => Template}/project_sidebar.php (100%) rename app/{Templates => Template}/project_tasks.php (100%) rename app/{Templates => Template}/project_users.php (100%) rename app/{Templates => Template}/subtask_create.php (100%) rename app/{Templates => Template}/subtask_edit.php (100%) rename app/{Templates => Template}/subtask_remove.php (100%) rename app/{Templates => Template}/subtask_show.php (100%) rename app/{Templates => Template}/task_close.php (100%) rename app/{Templates => Template}/task_comments.php (100%) rename app/{Templates => Template}/task_details.php (100%) rename app/{Templates => Template}/task_duplicate.php (100%) rename app/{Templates => Template}/task_duplicate_project.php (100%) rename app/{Templates => Template}/task_edit.php (100%) rename app/{Templates => Template}/task_edit_description.php (100%) rename app/{Templates => Template}/task_layout.php (100%) rename app/{Templates => Template}/task_move_project.php (100%) rename app/{Templates => Template}/task_new.php (100%) rename app/{Templates => Template}/task_open.php (100%) rename app/{Templates => Template}/task_public.php (100%) rename app/{Templates => Template}/task_remove.php (100%) rename app/{Templates => Template}/task_show.php (100%) rename app/{Templates => Template}/task_show_description.php (100%) rename app/{Templates => Template}/task_sidebar.php (100%) rename app/{Templates => Template}/task_table.php (100%) rename app/{Templates => Template}/task_time.php (100%) rename app/{Templates => Template}/task_timesheet.php (100%) rename app/{Templates => Template}/user_edit.php (100%) rename app/{Templates => Template}/user_external.php (100%) rename app/{Templates => Template}/user_index.php (100%) rename app/{Templates => Template}/user_last.php (100%) rename app/{Templates => Template}/user_layout.php (100%) rename app/{Templates => Template}/user_login.php (100%) rename app/{Templates => Template}/user_new.php (100%) rename app/{Templates => Template}/user_notifications.php (100%) rename app/{Templates => Template}/user_password.php (100%) rename app/{Templates => Template}/user_remove.php (100%) rename app/{Templates => Template}/user_sessions.php (100%) rename app/{Templates => Template}/user_show.php (100%) rename app/{Templates => Template}/user_sidebar.php (100%) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 26d490b22..34f9a173d 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,7 +2,7 @@ filter: excluded_paths: - 'vendor/*' - 'tests/*' - - 'app/Templates/*' + - 'app/Template/*' paths: { } tools: php_sim: @@ -12,7 +12,7 @@ tools: excluded_paths: - 'vendor/*' - 'tests/*' - - 'app/Templates/*' + - 'app/Template/*' paths: { } php_pdepend: enabled: true @@ -24,7 +24,7 @@ tools: excluded_paths: - 'vendor/*' - 'tests/*' - - 'app/Templates/*' + - 'app/Template/*' paths: { } php_analyzer: enabled: true @@ -35,7 +35,7 @@ tools: excluded_paths: - 'vendor/*' - 'tests/*' - - 'app/Templates/*' + - 'app/Template/*' paths: { } path_configs: { } php_changetracking: @@ -49,5 +49,5 @@ tools: excluded_paths: - 'vendor/*' - 'tests/*' - - 'app/Templates/*' + - 'app/Template/*' paths: { } diff --git a/app/Core/Template.php b/app/Core/Template.php index f21e8a6d2..da61f579c 100644 --- a/app/Core/Template.php +++ b/app/Core/Template.php @@ -17,7 +17,7 @@ class Template * * @var string */ - const PATH = 'app/Templates/'; + const PATH = 'app/Template/'; /** * Load a template diff --git a/app/Core/Translator.php b/app/Core/Translator.php index 43e934a95..1954ee2f8 100644 --- a/app/Core/Translator.php +++ b/app/Core/Translator.php @@ -11,14 +11,14 @@ namespace Core; class Translator { /** - * Locales path + * Locale path * * @var string */ - const PATH = 'app/Locales/'; + const PATH = 'app/Locale/'; /** - * Locales + * Locale * * @static * @access private diff --git a/app/Locales/da_DK/translations.php b/app/Locale/da_DK/translations.php similarity index 100% rename from app/Locales/da_DK/translations.php rename to app/Locale/da_DK/translations.php diff --git a/app/Locales/de_DE/translations.php b/app/Locale/de_DE/translations.php similarity index 100% rename from app/Locales/de_DE/translations.php rename to app/Locale/de_DE/translations.php diff --git a/app/Locales/es_ES/translations.php b/app/Locale/es_ES/translations.php similarity index 100% rename from app/Locales/es_ES/translations.php rename to app/Locale/es_ES/translations.php diff --git a/app/Locales/fi_FI/translations.php b/app/Locale/fi_FI/translations.php similarity index 100% rename from app/Locales/fi_FI/translations.php rename to app/Locale/fi_FI/translations.php diff --git a/app/Locales/fr_FR/translations.php b/app/Locale/fr_FR/translations.php similarity index 100% rename from app/Locales/fr_FR/translations.php rename to app/Locale/fr_FR/translations.php diff --git a/app/Locales/it_IT/translations.php b/app/Locale/it_IT/translations.php similarity index 100% rename from app/Locales/it_IT/translations.php rename to app/Locale/it_IT/translations.php diff --git a/app/Locales/ja_JP/translations.php b/app/Locale/ja_JP/translations.php similarity index 100% rename from app/Locales/ja_JP/translations.php rename to app/Locale/ja_JP/translations.php diff --git a/app/Locales/pl_PL/translations.php b/app/Locale/pl_PL/translations.php similarity index 100% rename from app/Locales/pl_PL/translations.php rename to app/Locale/pl_PL/translations.php diff --git a/app/Locales/pt_BR/translations.php b/app/Locale/pt_BR/translations.php similarity index 100% rename from app/Locales/pt_BR/translations.php rename to app/Locale/pt_BR/translations.php diff --git a/app/Locales/ru_RU/translations.php b/app/Locale/ru_RU/translations.php similarity index 100% rename from app/Locales/ru_RU/translations.php rename to app/Locale/ru_RU/translations.php diff --git a/app/Locales/sv_SE/translations.php b/app/Locale/sv_SE/translations.php similarity index 100% rename from app/Locales/sv_SE/translations.php rename to app/Locale/sv_SE/translations.php diff --git a/app/Locales/th_TH/translations.php b/app/Locale/th_TH/translations.php similarity index 100% rename from app/Locales/th_TH/translations.php rename to app/Locale/th_TH/translations.php diff --git a/app/Locales/zh_CN/translations.php b/app/Locale/zh_CN/translations.php similarity index 100% rename from app/Locales/zh_CN/translations.php rename to app/Locale/zh_CN/translations.php diff --git a/app/Templates/action_event.php b/app/Template/action_event.php similarity index 100% rename from app/Templates/action_event.php rename to app/Template/action_event.php diff --git a/app/Templates/action_index.php b/app/Template/action_index.php similarity index 100% rename from app/Templates/action_index.php rename to app/Template/action_index.php diff --git a/app/Templates/action_params.php b/app/Template/action_params.php similarity index 100% rename from app/Templates/action_params.php rename to app/Template/action_params.php diff --git a/app/Templates/action_remove.php b/app/Template/action_remove.php similarity index 100% rename from app/Templates/action_remove.php rename to app/Template/action_remove.php diff --git a/app/Templates/app_forbidden.php b/app/Template/app_forbidden.php similarity index 100% rename from app/Templates/app_forbidden.php rename to app/Template/app_forbidden.php diff --git a/app/Templates/app_index.php b/app/Template/app_index.php similarity index 100% rename from app/Templates/app_index.php rename to app/Template/app_index.php diff --git a/app/Templates/app_notfound.php b/app/Template/app_notfound.php similarity index 100% rename from app/Templates/app_notfound.php rename to app/Template/app_notfound.php diff --git a/app/Templates/board_assignee.php b/app/Template/board_assignee.php similarity index 100% rename from app/Templates/board_assignee.php rename to app/Template/board_assignee.php diff --git a/app/Templates/board_category.php b/app/Template/board_category.php similarity index 100% rename from app/Templates/board_category.php rename to app/Template/board_category.php diff --git a/app/Templates/board_edit.php b/app/Template/board_edit.php similarity index 100% rename from app/Templates/board_edit.php rename to app/Template/board_edit.php diff --git a/app/Templates/board_index.php b/app/Template/board_index.php similarity index 100% rename from app/Templates/board_index.php rename to app/Template/board_index.php diff --git a/app/Templates/board_public.php b/app/Template/board_public.php similarity index 100% rename from app/Templates/board_public.php rename to app/Template/board_public.php diff --git a/app/Templates/board_remove.php b/app/Template/board_remove.php similarity index 100% rename from app/Templates/board_remove.php rename to app/Template/board_remove.php diff --git a/app/Templates/board_show.php b/app/Template/board_show.php similarity index 100% rename from app/Templates/board_show.php rename to app/Template/board_show.php diff --git a/app/Templates/board_task.php b/app/Template/board_task.php similarity index 100% rename from app/Templates/board_task.php rename to app/Template/board_task.php diff --git a/app/Templates/category_edit.php b/app/Template/category_edit.php similarity index 100% rename from app/Templates/category_edit.php rename to app/Template/category_edit.php diff --git a/app/Templates/category_index.php b/app/Template/category_index.php similarity index 100% rename from app/Templates/category_index.php rename to app/Template/category_index.php diff --git a/app/Templates/category_remove.php b/app/Template/category_remove.php similarity index 100% rename from app/Templates/category_remove.php rename to app/Template/category_remove.php diff --git a/app/Templates/comment_create.php b/app/Template/comment_create.php similarity index 100% rename from app/Templates/comment_create.php rename to app/Template/comment_create.php diff --git a/app/Templates/comment_edit.php b/app/Template/comment_edit.php similarity index 100% rename from app/Templates/comment_edit.php rename to app/Template/comment_edit.php diff --git a/app/Templates/comment_forbidden.php b/app/Template/comment_forbidden.php similarity index 100% rename from app/Templates/comment_forbidden.php rename to app/Template/comment_forbidden.php diff --git a/app/Templates/comment_remove.php b/app/Template/comment_remove.php similarity index 100% rename from app/Templates/comment_remove.php rename to app/Template/comment_remove.php diff --git a/app/Templates/comment_show.php b/app/Template/comment_show.php similarity index 100% rename from app/Templates/comment_show.php rename to app/Template/comment_show.php diff --git a/app/Templates/config_about.php b/app/Template/config_about.php similarity index 100% rename from app/Templates/config_about.php rename to app/Template/config_about.php diff --git a/app/Templates/config_api.php b/app/Template/config_api.php similarity index 100% rename from app/Templates/config_api.php rename to app/Template/config_api.php diff --git a/app/Templates/config_application.php b/app/Template/config_application.php similarity index 100% rename from app/Templates/config_application.php rename to app/Template/config_application.php diff --git a/app/Templates/config_board.php b/app/Template/config_board.php similarity index 100% rename from app/Templates/config_board.php rename to app/Template/config_board.php diff --git a/app/Templates/config_layout.php b/app/Template/config_layout.php similarity index 100% rename from app/Templates/config_layout.php rename to app/Template/config_layout.php diff --git a/app/Templates/config_sidebar.php b/app/Template/config_sidebar.php similarity index 100% rename from app/Templates/config_sidebar.php rename to app/Template/config_sidebar.php diff --git a/app/Templates/config_webhook.php b/app/Template/config_webhook.php similarity index 100% rename from app/Templates/config_webhook.php rename to app/Template/config_webhook.php diff --git a/app/Templates/event_comment_create.php b/app/Template/event_comment_create.php similarity index 100% rename from app/Templates/event_comment_create.php rename to app/Template/event_comment_create.php diff --git a/app/Templates/event_comment_update.php b/app/Template/event_comment_update.php similarity index 100% rename from app/Templates/event_comment_update.php rename to app/Template/event_comment_update.php diff --git a/app/Templates/event_subtask_create.php b/app/Template/event_subtask_create.php similarity index 100% rename from app/Templates/event_subtask_create.php rename to app/Template/event_subtask_create.php diff --git a/app/Templates/event_subtask_update.php b/app/Template/event_subtask_update.php similarity index 100% rename from app/Templates/event_subtask_update.php rename to app/Template/event_subtask_update.php diff --git a/app/Templates/event_task_assignee_change.php b/app/Template/event_task_assignee_change.php similarity index 100% rename from app/Templates/event_task_assignee_change.php rename to app/Template/event_task_assignee_change.php diff --git a/app/Templates/event_task_close.php b/app/Template/event_task_close.php similarity index 100% rename from app/Templates/event_task_close.php rename to app/Template/event_task_close.php diff --git a/app/Templates/event_task_create.php b/app/Template/event_task_create.php similarity index 100% rename from app/Templates/event_task_create.php rename to app/Template/event_task_create.php diff --git a/app/Templates/event_task_move_column.php b/app/Template/event_task_move_column.php similarity index 100% rename from app/Templates/event_task_move_column.php rename to app/Template/event_task_move_column.php diff --git a/app/Templates/event_task_move_position.php b/app/Template/event_task_move_position.php similarity index 100% rename from app/Templates/event_task_move_position.php rename to app/Template/event_task_move_position.php diff --git a/app/Templates/event_task_open.php b/app/Template/event_task_open.php similarity index 100% rename from app/Templates/event_task_open.php rename to app/Template/event_task_open.php diff --git a/app/Templates/event_task_update.php b/app/Template/event_task_update.php similarity index 100% rename from app/Templates/event_task_update.php rename to app/Template/event_task_update.php diff --git a/app/Templates/file_new.php b/app/Template/file_new.php similarity index 100% rename from app/Templates/file_new.php rename to app/Template/file_new.php diff --git a/app/Templates/file_open.php b/app/Template/file_open.php similarity index 100% rename from app/Templates/file_open.php rename to app/Template/file_open.php diff --git a/app/Templates/file_remove.php b/app/Template/file_remove.php similarity index 100% rename from app/Templates/file_remove.php rename to app/Template/file_remove.php diff --git a/app/Templates/file_show.php b/app/Template/file_show.php similarity index 100% rename from app/Templates/file_show.php rename to app/Template/file_show.php diff --git a/app/Templates/layout.php b/app/Template/layout.php similarity index 100% rename from app/Templates/layout.php rename to app/Template/layout.php diff --git a/app/Templates/notification_comment_creation.php b/app/Template/notification_comment_creation.php similarity index 100% rename from app/Templates/notification_comment_creation.php rename to app/Template/notification_comment_creation.php diff --git a/app/Templates/notification_comment_update.php b/app/Template/notification_comment_update.php similarity index 100% rename from app/Templates/notification_comment_update.php rename to app/Template/notification_comment_update.php diff --git a/app/Templates/notification_file_creation.php b/app/Template/notification_file_creation.php similarity index 100% rename from app/Templates/notification_file_creation.php rename to app/Template/notification_file_creation.php diff --git a/app/Templates/notification_footer.php b/app/Template/notification_footer.php similarity index 100% rename from app/Templates/notification_footer.php rename to app/Template/notification_footer.php diff --git a/app/Templates/notification_subtask_creation.php b/app/Template/notification_subtask_creation.php similarity index 100% rename from app/Templates/notification_subtask_creation.php rename to app/Template/notification_subtask_creation.php diff --git a/app/Templates/notification_subtask_update.php b/app/Template/notification_subtask_update.php similarity index 100% rename from app/Templates/notification_subtask_update.php rename to app/Template/notification_subtask_update.php diff --git a/app/Templates/notification_task_assignee_change.php b/app/Template/notification_task_assignee_change.php similarity index 100% rename from app/Templates/notification_task_assignee_change.php rename to app/Template/notification_task_assignee_change.php diff --git a/app/Templates/notification_task_close.php b/app/Template/notification_task_close.php similarity index 100% rename from app/Templates/notification_task_close.php rename to app/Template/notification_task_close.php diff --git a/app/Templates/notification_task_creation.php b/app/Template/notification_task_creation.php similarity index 100% rename from app/Templates/notification_task_creation.php rename to app/Template/notification_task_creation.php diff --git a/app/Templates/notification_task_due.php b/app/Template/notification_task_due.php similarity index 100% rename from app/Templates/notification_task_due.php rename to app/Template/notification_task_due.php diff --git a/app/Templates/notification_task_move_column.php b/app/Template/notification_task_move_column.php similarity index 100% rename from app/Templates/notification_task_move_column.php rename to app/Template/notification_task_move_column.php diff --git a/app/Templates/notification_task_move_position.php b/app/Template/notification_task_move_position.php similarity index 100% rename from app/Templates/notification_task_move_position.php rename to app/Template/notification_task_move_position.php diff --git a/app/Templates/notification_task_open.php b/app/Template/notification_task_open.php similarity index 100% rename from app/Templates/notification_task_open.php rename to app/Template/notification_task_open.php diff --git a/app/Templates/notification_task_update.php b/app/Template/notification_task_update.php similarity index 100% rename from app/Templates/notification_task_update.php rename to app/Template/notification_task_update.php diff --git a/app/Templates/project_activity.php b/app/Template/project_activity.php similarity index 100% rename from app/Templates/project_activity.php rename to app/Template/project_activity.php diff --git a/app/Templates/project_disable.php b/app/Template/project_disable.php similarity index 100% rename from app/Templates/project_disable.php rename to app/Template/project_disable.php diff --git a/app/Templates/project_duplicate.php b/app/Template/project_duplicate.php similarity index 100% rename from app/Templates/project_duplicate.php rename to app/Template/project_duplicate.php diff --git a/app/Templates/project_edit.php b/app/Template/project_edit.php similarity index 100% rename from app/Templates/project_edit.php rename to app/Template/project_edit.php diff --git a/app/Templates/project_enable.php b/app/Template/project_enable.php similarity index 100% rename from app/Templates/project_enable.php rename to app/Template/project_enable.php diff --git a/app/Templates/project_events.php b/app/Template/project_events.php similarity index 100% rename from app/Templates/project_events.php rename to app/Template/project_events.php diff --git a/app/Templates/project_export.php b/app/Template/project_export.php similarity index 100% rename from app/Templates/project_export.php rename to app/Template/project_export.php diff --git a/app/Templates/project_feed.php b/app/Template/project_feed.php similarity index 100% rename from app/Templates/project_feed.php rename to app/Template/project_feed.php diff --git a/app/Templates/project_index.php b/app/Template/project_index.php similarity index 100% rename from app/Templates/project_index.php rename to app/Template/project_index.php diff --git a/app/Templates/project_layout.php b/app/Template/project_layout.php similarity index 100% rename from app/Templates/project_layout.php rename to app/Template/project_layout.php diff --git a/app/Templates/project_new.php b/app/Template/project_new.php similarity index 100% rename from app/Templates/project_new.php rename to app/Template/project_new.php diff --git a/app/Templates/project_remove.php b/app/Template/project_remove.php similarity index 100% rename from app/Templates/project_remove.php rename to app/Template/project_remove.php diff --git a/app/Templates/project_search.php b/app/Template/project_search.php similarity index 100% rename from app/Templates/project_search.php rename to app/Template/project_search.php diff --git a/app/Templates/project_share.php b/app/Template/project_share.php similarity index 100% rename from app/Templates/project_share.php rename to app/Template/project_share.php diff --git a/app/Templates/project_show.php b/app/Template/project_show.php similarity index 100% rename from app/Templates/project_show.php rename to app/Template/project_show.php diff --git a/app/Templates/project_sidebar.php b/app/Template/project_sidebar.php similarity index 100% rename from app/Templates/project_sidebar.php rename to app/Template/project_sidebar.php diff --git a/app/Templates/project_tasks.php b/app/Template/project_tasks.php similarity index 100% rename from app/Templates/project_tasks.php rename to app/Template/project_tasks.php diff --git a/app/Templates/project_users.php b/app/Template/project_users.php similarity index 100% rename from app/Templates/project_users.php rename to app/Template/project_users.php diff --git a/app/Templates/subtask_create.php b/app/Template/subtask_create.php similarity index 100% rename from app/Templates/subtask_create.php rename to app/Template/subtask_create.php diff --git a/app/Templates/subtask_edit.php b/app/Template/subtask_edit.php similarity index 100% rename from app/Templates/subtask_edit.php rename to app/Template/subtask_edit.php diff --git a/app/Templates/subtask_remove.php b/app/Template/subtask_remove.php similarity index 100% rename from app/Templates/subtask_remove.php rename to app/Template/subtask_remove.php diff --git a/app/Templates/subtask_show.php b/app/Template/subtask_show.php similarity index 100% rename from app/Templates/subtask_show.php rename to app/Template/subtask_show.php diff --git a/app/Templates/task_close.php b/app/Template/task_close.php similarity index 100% rename from app/Templates/task_close.php rename to app/Template/task_close.php diff --git a/app/Templates/task_comments.php b/app/Template/task_comments.php similarity index 100% rename from app/Templates/task_comments.php rename to app/Template/task_comments.php diff --git a/app/Templates/task_details.php b/app/Template/task_details.php similarity index 100% rename from app/Templates/task_details.php rename to app/Template/task_details.php diff --git a/app/Templates/task_duplicate.php b/app/Template/task_duplicate.php similarity index 100% rename from app/Templates/task_duplicate.php rename to app/Template/task_duplicate.php diff --git a/app/Templates/task_duplicate_project.php b/app/Template/task_duplicate_project.php similarity index 100% rename from app/Templates/task_duplicate_project.php rename to app/Template/task_duplicate_project.php diff --git a/app/Templates/task_edit.php b/app/Template/task_edit.php similarity index 100% rename from app/Templates/task_edit.php rename to app/Template/task_edit.php diff --git a/app/Templates/task_edit_description.php b/app/Template/task_edit_description.php similarity index 100% rename from app/Templates/task_edit_description.php rename to app/Template/task_edit_description.php diff --git a/app/Templates/task_layout.php b/app/Template/task_layout.php similarity index 100% rename from app/Templates/task_layout.php rename to app/Template/task_layout.php diff --git a/app/Templates/task_move_project.php b/app/Template/task_move_project.php similarity index 100% rename from app/Templates/task_move_project.php rename to app/Template/task_move_project.php diff --git a/app/Templates/task_new.php b/app/Template/task_new.php similarity index 100% rename from app/Templates/task_new.php rename to app/Template/task_new.php diff --git a/app/Templates/task_open.php b/app/Template/task_open.php similarity index 100% rename from app/Templates/task_open.php rename to app/Template/task_open.php diff --git a/app/Templates/task_public.php b/app/Template/task_public.php similarity index 100% rename from app/Templates/task_public.php rename to app/Template/task_public.php diff --git a/app/Templates/task_remove.php b/app/Template/task_remove.php similarity index 100% rename from app/Templates/task_remove.php rename to app/Template/task_remove.php diff --git a/app/Templates/task_show.php b/app/Template/task_show.php similarity index 100% rename from app/Templates/task_show.php rename to app/Template/task_show.php diff --git a/app/Templates/task_show_description.php b/app/Template/task_show_description.php similarity index 100% rename from app/Templates/task_show_description.php rename to app/Template/task_show_description.php diff --git a/app/Templates/task_sidebar.php b/app/Template/task_sidebar.php similarity index 100% rename from app/Templates/task_sidebar.php rename to app/Template/task_sidebar.php diff --git a/app/Templates/task_table.php b/app/Template/task_table.php similarity index 100% rename from app/Templates/task_table.php rename to app/Template/task_table.php diff --git a/app/Templates/task_time.php b/app/Template/task_time.php similarity index 100% rename from app/Templates/task_time.php rename to app/Template/task_time.php diff --git a/app/Templates/task_timesheet.php b/app/Template/task_timesheet.php similarity index 100% rename from app/Templates/task_timesheet.php rename to app/Template/task_timesheet.php diff --git a/app/Templates/user_edit.php b/app/Template/user_edit.php similarity index 100% rename from app/Templates/user_edit.php rename to app/Template/user_edit.php diff --git a/app/Templates/user_external.php b/app/Template/user_external.php similarity index 100% rename from app/Templates/user_external.php rename to app/Template/user_external.php diff --git a/app/Templates/user_index.php b/app/Template/user_index.php similarity index 100% rename from app/Templates/user_index.php rename to app/Template/user_index.php diff --git a/app/Templates/user_last.php b/app/Template/user_last.php similarity index 100% rename from app/Templates/user_last.php rename to app/Template/user_last.php diff --git a/app/Templates/user_layout.php b/app/Template/user_layout.php similarity index 100% rename from app/Templates/user_layout.php rename to app/Template/user_layout.php diff --git a/app/Templates/user_login.php b/app/Template/user_login.php similarity index 100% rename from app/Templates/user_login.php rename to app/Template/user_login.php diff --git a/app/Templates/user_new.php b/app/Template/user_new.php similarity index 100% rename from app/Templates/user_new.php rename to app/Template/user_new.php diff --git a/app/Templates/user_notifications.php b/app/Template/user_notifications.php similarity index 100% rename from app/Templates/user_notifications.php rename to app/Template/user_notifications.php diff --git a/app/Templates/user_password.php b/app/Template/user_password.php similarity index 100% rename from app/Templates/user_password.php rename to app/Template/user_password.php diff --git a/app/Templates/user_remove.php b/app/Template/user_remove.php similarity index 100% rename from app/Templates/user_remove.php rename to app/Template/user_remove.php diff --git a/app/Templates/user_sessions.php b/app/Template/user_sessions.php similarity index 100% rename from app/Templates/user_sessions.php rename to app/Template/user_sessions.php diff --git a/app/Templates/user_show.php b/app/Template/user_show.php similarity index 100% rename from app/Templates/user_show.php rename to app/Template/user_show.php diff --git a/app/Templates/user_sidebar.php b/app/Template/user_sidebar.php similarity index 100% rename from app/Templates/user_sidebar.php rename to app/Template/user_sidebar.php diff --git a/docs/translations.markdown b/docs/translations.markdown index ec7162bed..8a9dca6aa 100644 --- a/docs/translations.markdown +++ b/docs/translations.markdown @@ -4,7 +4,7 @@ Translations How to translate Kanboard to a new language? -------------------------------------------- -- Translations are stored inside the directory `app/Locales` +- Translations are stored inside the directory `app/Locale` - There is sub-directory for each language, by example for the French we have `fr_FR`, Italian `it_IT` etc... - A translation is a PHP file that return an Array with a key-value pairs - The key is the original text in english and the value is the translation for the corresponding language @@ -13,8 +13,8 @@ How to translate Kanboard to a new language? ### Create a new translation: -1. Make a new directory: `app/Locales/xx_XX` by example `app/Locales/fr_CA` for French Canadian -2. Create a new file for the translation: `app/Locales/xx_XX/translations.php` +1. Make a new directory: `app/Locale/xx_XX` by example `app/Locale/fr_CA` for French Canadian +2. Create a new file for the translation: `app/Locale/xx_XX/translations.php` 3. Use the content of the French locales and replace the values 4. Inside the file `app/Model/Config.php`, add a new entry for your translation inside the function `getLanguages()` 5. Check with your local installation of Kanboard if everything is ok @@ -23,6 +23,6 @@ How to translate Kanboard to a new language? How to update an existing translation? -------------------------------------- -1. Open the translation file `app/Locales/xx_XX/translations.php` +1. Open the translation file `app/Locale/xx_XX/translations.php` 2. Missing translations are commented with `//` and the values are empty, just fill blank and remove comments 3. Check with your local installation of Kanboard and send a pull-request diff --git a/scripts/sync-locales.php b/scripts/sync-locales.php index 00d6c8971..181686b7b 100755 --- a/scripts/sync-locales.php +++ b/scripts/sync-locales.php @@ -2,7 +2,7 @@ isDot() && $fileInfo->isDir() && $fileInfo->getFilename() !== $reference_lang) { - $filename = 'app/Locales/'.$fileInfo->getFilename().'/translations.php'; + $filename = 'app/Locale/'.$fileInfo->getFilename().'/translations.php'; echo $fileInfo->getFilename().' ('.$filename.')'.PHP_EOL;