Automatisches Ersetzen von <translate>...</translate> durch $T8
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 9 Jul 2010 11:22:09 +0000 (13:22 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 9 Jul 2010 11:22:09 +0000 (13:22 +0200)
commitdfee919915587ccb7fe967eee482b7cdc105e57f
treec5c8e4626521f81b409075e498fb720eca360dad
parenta6d6dfc26ee7b11a0334c070172b9e0c9ad90706
Automatisches Ersetzen von <translate>...</translate> durch $T8

Dieser Commit ersetzt die Commits 10d6315268e6c0217876f573c9be5e35fcbb4654
(Automatisches Ersetzen von <translate>...</translate> durch $T8) und
ce48ff49c3ac82602b29a4837b0882c1f567f17b (Automatisches Ersetzen von
<translate>...</translate> durch $T8 Teil 2).

Der Grundgedanke ist, den veralteten <translate> Tag durch den dynamischen
Funktionsaufruf T8.filter oder LxERP.t8 zu ersetzen um später die die Templates
flexibler zu machen. Im ersten Schritt werden daür in allen master Dateien die
<translate> Aufrufe mit dem im letzten Commit eingefügten Migrationsscript
ersetzt. Im zweiten Schritt werden Zeilenumbrüche innerhalb einer Übersetzung
manuell korrigiert.

Das Script ignoriert translates in Template Blöcken, ergo müssen diese von Hand
nachbearbeitet werden. Dieser Schritt fehlt in den beiden original Commits.

Als letzten Schritt werden Konstrukte der Art:

  [% 'Text mit [% HTML.escape(variable) %]' | $T8 %]

ersetzt durch

  [% LxERP.t8('Text mit #1', variable) | html %]

Wichtig dabei dass der Filter durch html erstzt wird, und bei Bedarf [% USE
LxERP %] ergänzt wird. Die locales müssen analog angepasst werden. Dieser
Schritt ist in den Original Commits ebenfalls nicht enthalten. Es betrifft etwa
20 Vorkommnisse im Programm, die meisten davon im Migrationsbereich. Es ist
vorher nicht aufgefallen, weil die recht selten angezeigt werden, hier ist eher
die Konsistenz gewünscht.

Die locales.pl in dieser Version ist noch nicht in der Lage Anführungszeichen
in LxERP.t8() Escapes richtig zu verabeiten, das eine Vorkommen davon ist
behoben.
394 files changed:
locale/de/all
locale/de/ap
locale/de/ar
locale/de/arap
locale/de/cp
locale/de/do
locale/de/ir
locale/de/is
locale/de/login
locale/de/oe
locale/de/rp
locale/de/todo
templates/webpages/acctranscorrections/analyze_filter_de.html
templates/webpages/acctranscorrections/analyze_filter_master.html
templates/webpages/acctranscorrections/analyze_overview_de.html
templates/webpages/acctranscorrections/analyze_overview_master.html
templates/webpages/acctranscorrections/assistant_for_ap_ar_wrong_taxkeys_de.html
templates/webpages/acctranscorrections/assistant_for_ap_ar_wrong_taxkeys_master.html
templates/webpages/acctranscorrections/assistant_for_invoice_inventory_with_taxkeys_de.html
templates/webpages/acctranscorrections/assistant_for_invoice_inventory_with_taxkeys_master.html
templates/webpages/acctranscorrections/assistant_for_wrong_taxes_de.html
templates/webpages/acctranscorrections/assistant_for_wrong_taxes_master.html
templates/webpages/acctranscorrections/assistant_for_wrong_taxkeys_de.html
templates/webpages/acctranscorrections/assistant_for_wrong_taxkeys_master.html
templates/webpages/acctranscorrections/delete_transaction_confirmation_de.html
templates/webpages/acctranscorrections/delete_transaction_confirmation_master.html
templates/webpages/acctranscorrections/delete_transaction_de.html
templates/webpages/acctranscorrections/delete_transaction_master.html
templates/webpages/acctranscorrections/fix_ap_ar_wrong_taxkeys_de.html
templates/webpages/acctranscorrections/fix_ap_ar_wrong_taxkeys_master.html
templates/webpages/acctranscorrections/fix_invoice_inventory_with_taxkeys_de.html
templates/webpages/acctranscorrections/fix_invoice_inventory_with_taxkeys_master.html
templates/webpages/acctranscorrections/fix_wrong_taxkeys_de.html
templates/webpages/acctranscorrections/fix_wrong_taxkeys_master.html
templates/webpages/admin/adminlogin_de.html
templates/webpages/admin/adminlogin_master.html
templates/webpages/admin/backup_dataset_de.html
templates/webpages/admin/backup_dataset_email_done_de.html
templates/webpages/admin/backup_dataset_email_done_master.html
templates/webpages/admin/backup_dataset_master.html
templates/webpages/admin/check_auth_database_de.html
templates/webpages/admin/check_auth_database_master.html
templates/webpages/admin/check_auth_tables_de.html
templates/webpages/admin/check_auth_tables_master.html
templates/webpages/admin/create_dataset_de.html
templates/webpages/admin/create_dataset_master.html
templates/webpages/admin/create_standard_group_ask_de.html
templates/webpages/admin/create_standard_group_ask_master.html
templates/webpages/admin/dbadmin_de.html
templates/webpages/admin/dbadmin_master.html
templates/webpages/admin/dbcreate_de.html
templates/webpages/admin/dbcreate_master.html
templates/webpages/admin/dbdelete_de.html
templates/webpages/admin/dbdelete_master.html
templates/webpages/admin/dbupgrade_all_done_de.html
templates/webpages/admin/dbupgrade_all_done_master.html
templates/webpages/admin/dbupgrade_footer_de.html
templates/webpages/admin/dbupgrade_footer_master.html
templates/webpages/admin/dbupgrade_header_de.html
templates/webpages/admin/dbupgrade_header_master.html
templates/webpages/admin/delete_dataset_de.html
templates/webpages/admin/delete_dataset_master.html
templates/webpages/admin/delete_group_confirm_de.html
templates/webpages/admin/delete_group_confirm_master.html
templates/webpages/admin/edit_group_de.html
templates/webpages/admin/edit_group_master.html
templates/webpages/admin/edit_group_membership_de.html
templates/webpages/admin/edit_group_membership_master.html
templates/webpages/admin/edit_groups_de.html
templates/webpages/admin/edit_groups_master.html
templates/webpages/admin/edit_user_de.html
templates/webpages/admin/edit_user_master.html
templates/webpages/admin/list_users_de.html
templates/webpages/admin/list_users_master.html
templates/webpages/admin/restore_dataset_de.html
templates/webpages/admin/restore_dataset_master.html
templates/webpages/admin/restore_dataset_start_footer_de.html
templates/webpages/admin/restore_dataset_start_footer_master.html
templates/webpages/admin/restore_dataset_start_header_de.html
templates/webpages/admin/restore_dataset_start_header_master.html
templates/webpages/admin/test_db_connection_de.html
templates/webpages/admin/test_db_connection_master.html
templates/webpages/admin/update_dataset_de.html
templates/webpages/admin/update_dataset_master.html
templates/webpages/admin/user_migration_complete_de.html
templates/webpages/admin/user_migration_complete_master.html
templates/webpages/admin/user_migration_de.html
templates/webpages/admin/user_migration_done_de.html
templates/webpages/admin/user_migration_done_master.html
templates/webpages/admin/user_migration_master.html
templates/webpages/am/config_de.html
templates/webpages/am/config_master.html
templates/webpages/am/confirm_delete_warehouse_de.html
templates/webpages/am/confirm_delete_warehouse_master.html
templates/webpages/am/edit_accounts_de.html
templates/webpages/am/edit_accounts_master.html
templates/webpages/am/edit_defaults_de.html
templates/webpages/am/edit_defaults_master.html
templates/webpages/am/edit_price_factor_de.html
templates/webpages/am/edit_price_factor_master.html
templates/webpages/am/edit_tax_de.html
templates/webpages/am/edit_tax_master.html
templates/webpages/am/edit_templates_de.html
templates/webpages/am/edit_templates_master.html
templates/webpages/am/edit_units_de.html
templates/webpages/am/edit_units_master.html
templates/webpages/am/edit_warehouse_de.html
templates/webpages/am/edit_warehouse_master.html
templates/webpages/am/list_account_details_de.html
templates/webpages/am/list_account_details_master.html
templates/webpages/am/list_accounts_de.html
templates/webpages/am/list_accounts_master.html
templates/webpages/am/list_price_factors_de.html
templates/webpages/am/list_price_factors_master.html
templates/webpages/am/list_tax_de.html
templates/webpages/am/list_tax_master.html
templates/webpages/am/list_warehouses_de.html
templates/webpages/am/list_warehouses_master.html
templates/webpages/amcvar/display_cvar_config_form_de.html
templates/webpages/amcvar/display_cvar_config_form_master.html
templates/webpages/amcvar/list_cvar_configs_de.html
templates/webpages/amcvar/list_cvar_configs_master.html
templates/webpages/amcvar/render_inputs_de.html
templates/webpages/amcvar/render_inputs_master.html
templates/webpages/amcvar/search_filter_de.html
templates/webpages/amcvar/search_filter_master.html
templates/webpages/ap/ap_transactions_bottom_de.html
templates/webpages/ap/ap_transactions_bottom_master.html
templates/webpages/ap/search_de.html
templates/webpages/ap/search_master.html
templates/webpages/ar/ar_transactions_bottom_de.html
templates/webpages/ar/ar_transactions_bottom_master.html
templates/webpages/ar/search_de.html
templates/webpages/ar/search_master.html
templates/webpages/bankaccounts/bank_account_display_form_de.html
templates/webpages/bankaccounts/bank_account_display_form_master.html
templates/webpages/bankaccounts/bank_account_list_bottom_de.html
templates/webpages/bankaccounts/bank_account_list_bottom_master.html
templates/webpages/common/search_history_de.html
templates/webpages/common/search_history_master.html
templates/webpages/common/show_history_de.html
templates/webpages/common/show_history_master.html
templates/webpages/common/show_vc_details_de.html
templates/webpages/common/show_vc_details_master.html
templates/webpages/ct/form_footer_de.html
templates/webpages/ct/form_footer_master.html
templates/webpages/ct/form_header_de.html
templates/webpages/ct/form_header_master.html
templates/webpages/ct/get_delivery_de.html
templates/webpages/ct/get_delivery_master.html
templates/webpages/ct/list_names_bottom_de.html
templates/webpages/ct/list_names_bottom_master.html
templates/webpages/ct/search_de.html
templates/webpages/ct/search_master.html
templates/webpages/dbupgrade/SKR04_3804_already_exists_de.html
templates/webpages/dbupgrade/SKR04_3804_already_exists_master.html
templates/webpages/dbupgrade/SKR04_3804_update_de.html
templates/webpages/dbupgrade/SKR04_3804_update_master.html
templates/webpages/dbupgrade/buchungsgruppen_assemblies_de.html
templates/webpages/dbupgrade/buchungsgruppen_assemblies_done_de.html
templates/webpages/dbupgrade/buchungsgruppen_assemblies_done_master.html
templates/webpages/dbupgrade/buchungsgruppen_assemblies_master.html
templates/webpages/dbupgrade/buchungsgruppen_footer_de.html
templates/webpages/dbupgrade/buchungsgruppen_footer_master.html
templates/webpages/dbupgrade/buchungsgruppen_header_de.html
templates/webpages/dbupgrade/buchungsgruppen_header_master.html
templates/webpages/dbupgrade/buchungsgruppen_parts_de.html
templates/webpages/dbupgrade/buchungsgruppen_parts_done_de.html
templates/webpages/dbupgrade/buchungsgruppen_parts_done_master.html
templates/webpages/dbupgrade/buchungsgruppen_parts_master.html
templates/webpages/dbupgrade/buchungsgruppen_services_de.html
templates/webpages/dbupgrade/buchungsgruppen_services_done_de.html
templates/webpages/dbupgrade/buchungsgruppen_services_done_master.html
templates/webpages/dbupgrade/buchungsgruppen_services_master.html
templates/webpages/dbupgrade/coa_guess_de.html
templates/webpages/dbupgrade/coa_guess_master.html
templates/webpages/dbupgrade/cp_greeting_update_form_de.html
templates/webpages/dbupgrade/cp_greeting_update_form_master.html
templates/webpages/dbupgrade/error_de.html
templates/webpages/dbupgrade/error_master.html
templates/webpages/dbupgrade/footer_de.html
templates/webpages/dbupgrade/footer_master.html
templates/webpages/dbupgrade/header_de.html
templates/webpages/dbupgrade/header_master.html
templates/webpages/dbupgrade/std_buchungsgruppen_unknown_coa_de.html
templates/webpages/dbupgrade/std_buchungsgruppen_unknown_coa_master.html
templates/webpages/dbupgrade/units_error_de.html
templates/webpages/dbupgrade/units_error_master.html
templates/webpages/dbupgrade/units_header_de.html
templates/webpages/dbupgrade/units_header_master.html
templates/webpages/dbupgrade/units_parts_de.html
templates/webpages/dbupgrade/units_parts_done_de.html
templates/webpages/dbupgrade/units_parts_done_master.html
templates/webpages/dbupgrade/units_parts_master.html
templates/webpages/dbupgrade/units_services_de.html
templates/webpages/dbupgrade/units_services_done_de.html
templates/webpages/dbupgrade/units_services_done_master.html
templates/webpages/dbupgrade/units_services_master.html
templates/webpages/dbupgrade/units_set_default_de.html
templates/webpages/dbupgrade/units_set_default_done_de.html
templates/webpages/dbupgrade/units_set_default_done_master.html
templates/webpages/dbupgrade/units_set_default_master.html
templates/webpages/dbupgrade/update_templates_warnings_de.html
templates/webpages/dbupgrade/update_templates_warnings_master.html
templates/webpages/dbupgrade/upgrade_message2_de.html
templates/webpages/dbupgrade/upgrade_message2_master.html
templates/webpages/dbupgrade/warehouse_form_de.html
templates/webpages/dbupgrade/warehouse_form_master.html
templates/webpages/dbupgrade/warning_de.html
templates/webpages/dbupgrade/warning_master.html
templates/webpages/do/delete_de.html
templates/webpages/do/delete_master.html
templates/webpages/do/form_footer_de.html
templates/webpages/do/form_footer_master.html
templates/webpages/do/form_header_de.html
templates/webpages/do/form_header_master.html
templates/webpages/do/orders_bottom_de.html
templates/webpages/do/orders_bottom_master.html
templates/webpages/do/search_de.html
templates/webpages/do/search_master.html
templates/webpages/do/stock_in_form_de.html
templates/webpages/do/stock_in_form_master.html
templates/webpages/do/stock_out_form_de.html
templates/webpages/do/stock_out_form_master.html
templates/webpages/drafts/load_de.html
templates/webpages/drafts/load_master.html
templates/webpages/drafts/save_new_de.html
templates/webpages/drafts/save_new_master.html
templates/webpages/dunning/add_de.html
templates/webpages/dunning/add_master.html
templates/webpages/dunning/edit_config_de.html
templates/webpages/dunning/edit_config_master.html
templates/webpages/dunning/search_de.html
templates/webpages/dunning/search_master.html
templates/webpages/dunning/set_email_de.html
templates/webpages/dunning/set_email_master.html
templates/webpages/dunning/show_dunning_bottom_de.html
templates/webpages/dunning/show_dunning_bottom_master.html
templates/webpages/dunning/show_invoices_de.html
templates/webpages/dunning/show_invoices_master.html
templates/webpages/fu/add_edit_de.html
templates/webpages/fu/add_edit_master.html
templates/webpages/fu/edit_access_rights_de.html
templates/webpages/fu/edit_access_rights_master.html
templates/webpages/fu/report_bottom_de.html
templates/webpages/fu/report_bottom_master.html
templates/webpages/fu/report_for_todo_list_de.html
templates/webpages/fu/report_for_todo_list_master.html
templates/webpages/fu/search_de.html
templates/webpages/fu/search_master.html
templates/webpages/generic/calculate_qty_de.html
templates/webpages/generic/calculate_qty_master.html
templates/webpages/generic/cov_selection_de.html
templates/webpages/generic/cov_selection_master.html
templates/webpages/generic/edit_email_de.html
templates/webpages/generic/edit_email_master.html
templates/webpages/generic/error_de.html
templates/webpages/generic/error_master.html
templates/webpages/generic/information_de.html
templates/webpages/generic/information_master.html
templates/webpages/generic/new_item_de.html
templates/webpages/generic/new_item_master.html
templates/webpages/generic/part_selection_de.html
templates/webpages/generic/part_selection_master.html
templates/webpages/generic/print_options_de.html
templates/webpages/generic/print_options_master.html
templates/webpages/generic/select_delivery_customer_de.html
templates/webpages/generic/select_delivery_customer_master.html
templates/webpages/generic/select_part_de.html
templates/webpages/generic/select_part_master.html
templates/webpages/generic/select_vendor_de.html
templates/webpages/generic/select_vendor_master.html
templates/webpages/generic/set_longdescription_de.html
templates/webpages/generic/set_longdescription_master.html
templates/webpages/generictranslations/edit_greetings_de.html
templates/webpages/generictranslations/edit_greetings_master.html
templates/webpages/gl/generate_report_bottom_de.html
templates/webpages/gl/generate_report_bottom_master.html
templates/webpages/ic/assembly_row_de.html
templates/webpages/ic/assembly_row_master.html
templates/webpages/ic/choice_de.html
templates/webpages/ic/choice_master.html
templates/webpages/ic/confirm_price_update_de.html
templates/webpages/ic/confirm_price_update_master.html
templates/webpages/ic/form_footer_de.html
templates/webpages/ic/form_footer_master.html
templates/webpages/ic/form_header_de.html
templates/webpages/ic/form_header_master.html
templates/webpages/ic/generate_report_bottom_de.html
templates/webpages/ic/generate_report_bottom_master.html
templates/webpages/ic/makemodel_de.html
templates/webpages/ic/makemodel_master.html
templates/webpages/ic/parts_language_selection_de.html
templates/webpages/ic/parts_language_selection_master.html
templates/webpages/ic/price_row_de.html
templates/webpages/ic/price_row_master.html
templates/webpages/ic/search_de.html
templates/webpages/ic/search_master.html
templates/webpages/ic/search_update_prices_de.html
templates/webpages/ic/search_update_prices_master.html
templates/webpages/ir/_payments_de.html
templates/webpages/ir/_payments_master.html
templates/webpages/ir/form_footer_de.html
templates/webpages/ir/form_footer_master.html
templates/webpages/ir/form_header_de.html
templates/webpages/ir/form_header_master.html
templates/webpages/is/form_footer_de.html
templates/webpages/is/form_footer_master.html
templates/webpages/is/form_header_de.html
templates/webpages/is/form_header_master.html
templates/webpages/login/auth_db_unreachable_de.html
templates/webpages/login/auth_db_unreachable_master.html
templates/webpages/login/authentication_pl_missing_de.html
templates/webpages/login/authentication_pl_missing_master.html
templates/webpages/login/company_logo_de.html
templates/webpages/login/company_logo_master.html
templates/webpages/login/login_screen_de.html
templates/webpages/login/login_screen_master.html
templates/webpages/login/password_error_de.html
templates/webpages/login/password_error_master.html
templates/webpages/menu/menunew_de.html
templates/webpages/menu/menunew_master.html
templates/webpages/menu/menuv3_de.html
templates/webpages/menu/menuv3_master.html
templates/webpages/menu/menuv4_de.html
templates/webpages/menu/menuv4_master.html
templates/webpages/oe/check_for_direct_delivery_de.html
templates/webpages/oe/check_for_direct_delivery_master.html
templates/webpages/oe/form_footer_de.html
templates/webpages/oe/form_footer_master.html
templates/webpages/oe/form_header_de.html
templates/webpages/oe/form_header_master.html
templates/webpages/oe/orders_bottom_de.html
templates/webpages/oe/orders_bottom_master.html
templates/webpages/oe/report_for_todo_list_de.html
templates/webpages/oe/report_for_todo_list_master.html
templates/webpages/oe/sales_order_de.html
templates/webpages/oe/sales_order_master.html
templates/webpages/oe/search_de.html
templates/webpages/oe/search_master.html
templates/webpages/projects/project_form_de.html
templates/webpages/projects/project_form_master.html
templates/webpages/projects/search_de.html
templates/webpages/projects/search_master.html
templates/webpages/report_generator/csv_export_options_de.html
templates/webpages/report_generator/csv_export_options_master.html
templates/webpages/report_generator/html_report_de.html
templates/webpages/report_generator/html_report_master.html
templates/webpages/report_generator/pdf_export_options_de.html
templates/webpages/report_generator/pdf_export_options_master.html
templates/webpages/rp/aging_ar_bottom_de.html
templates/webpages/rp/aging_ar_bottom_master.html
templates/webpages/rp/balance_sheet_de.html
templates/webpages/rp/balance_sheet_master.html
templates/webpages/rp/html_report_susa_de.html
templates/webpages/rp/html_report_susa_master.html
templates/webpages/sepa/bank_transfer_add_de.html
templates/webpages/sepa/bank_transfer_add_master.html
templates/webpages/sepa/bank_transfer_create_de.html
templates/webpages/sepa/bank_transfer_create_master.html
templates/webpages/sepa/bank_transfer_created_de.html
templates/webpages/sepa/bank_transfer_created_master.html
templates/webpages/sepa/bank_transfer_edit_de.html
templates/webpages/sepa/bank_transfer_edit_master.html
templates/webpages/sepa/bank_transfer_list_bottom_de.html
templates/webpages/sepa/bank_transfer_list_bottom_master.html
templates/webpages/sepa/bank_transfer_mark_as_closed_step1_de.html
templates/webpages/sepa/bank_transfer_mark_as_closed_step1_master.html
templates/webpages/sepa/bank_transfer_search_de.html
templates/webpages/sepa/bank_transfer_search_master.html
templates/webpages/todo/show_todo_list_de.html
templates/webpages/todo/show_todo_list_master.html
templates/webpages/ustva/config_step1_de.html
templates/webpages/ustva/config_step1_master.html
templates/webpages/ustva/config_step2_de.html
templates/webpages/ustva/config_step2_master.html
templates/webpages/ustva/generic_taxreport_de.html
templates/webpages/ustva/generic_taxreport_master.html
templates/webpages/ustva/report_de.html
templates/webpages/ustva/report_master.html
templates/webpages/wh/journal_filter_de.html
templates/webpages/wh/journal_filter_master.html
templates/webpages/wh/removal_parts_selection_de.html
templates/webpages/wh/removal_parts_selection_master.html
templates/webpages/wh/report_filter_de.html
templates/webpages/wh/report_filter_master.html
templates/webpages/wh/transfer_parts_selection_de.html
templates/webpages/wh/transfer_parts_selection_master.html
templates/webpages/wh/warehouse_selection_assembly_de.html
templates/webpages/wh/warehouse_selection_assembly_master.html
templates/webpages/wh/warehouse_selection_de.html
templates/webpages/wh/warehouse_selection_master.html
templates/webpages/wh/warehouse_selection_stock_de.html
templates/webpages/wh/warehouse_selection_stock_master.html