From bdb9af09c83e1224617d0d18addb478ceca82e33 Mon Sep 17 00:00:00 2001 From: Rafael Funchal Date: Wed, 12 Jun 2013 20:04:24 -0300 Subject: [PATCH] Localization strings and added default pot and pt_BR files --- asset/js/script.js | 8 +- languages/wp-migrate-db-pt_BR.mo | Bin 0 -> 6653 bytes languages/wp-migrate-db-pt_BR.po | 291 +++++++++++++++++++++++++++++++ languages/wp-migrate-db.pot | 270 ++++++++++++++++++++++++++++ wp-migrate-db.php | 114 ++++++------ 5 files changed, 629 insertions(+), 54 deletions(-) create mode 100644 languages/wp-migrate-db-pt_BR.mo create mode 100644 languages/wp-migrate-db-pt_BR.po create mode 100644 languages/wp-migrate-db.pot diff --git a/asset/js/script.js b/asset/js/script.js index 22c1c42..0bcccaa 100644 --- a/asset/js/script.js +++ b/asset/js/script.js @@ -1,15 +1,19 @@ (function($) { $(document).ready(function() { + // Localization strings + var show_less = wp_migrate_db_translate_script.show_less; + var show_more = wp_migrate_db_translate_script.show_more; + $('#replace-guids-info-link').click(function() { var $div = $('#replace-guids-info'); if ( 'none' == $div.css('display') ) { $div.show(); - $(this).html('show less'); + $(this).html( show_less ); return false; } else { $div.hide(); - $(this).html('show more'); + $(this).html( show_more ); return false; } }); diff --git a/languages/wp-migrate-db-pt_BR.mo b/languages/wp-migrate-db-pt_BR.mo new file mode 100644 index 0000000000000000000000000000000000000000..e36d69ba60f20de7c644229811d8a85d5ccb0ca2 GIT binary patch literal 6653 zcmbW5TWlOx8OH}&pf%;vQlK~Ji6L!Lyc;{0CS5yG9NS3^N$kdM0}{oYojJQZ$=o^@ zU-C!=0-=w0v>$f+1-jjTL6?{MMhu`XO0lb&@ zF8E&XY4CRN%iwL`x52x?AJ*@$fHMCdYWz1Sm2#S7hfS&~KWicMTb?|fGXF$>G*0;OwyTJ!|-v=HB zp8)R!p8?+kJ_o)5{s0^WU&5#&|Er+P`)6Pe+cn|nG$e(x19nK#2fbzZ{6g$j<_k+C}KMz6;@0*|kUjU`w zFTgSI@Ad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Q0<>guo0G({_S`NBY70-K0|y9- zX`AKjUPBQHPXsvjk;1V4ji9b&^!89ZFw2$_$6JzMX-^sQlo0N4z-!G~A2iaC69u8# z@(k\n" +"Language-Team: Rafael Funchal \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" +"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-migrate-db.php:102 +msgid "show less" +msgstr "ocultar" + +#: ../wp-migrate-db.php:103 ../wp-migrate-db.php:311 +msgid "show more" +msgstr "expandir" + +#: ../wp-migrate-db.php:124 +msgid "Please enter the current URL." +msgstr "Por favor, informe a URL atual." + +#: ../wp-migrate-db.php:128 +msgid "Please enter a new URL." +msgstr "Por favor, informe a URL nova." + +#: ../wp-migrate-db.php:132 +msgid "Please enter the current file path." +msgstr "Por favor, informe o caminho atual dos arquivos." + +#: ../wp-migrate-db.php:136 +msgid "Please enter a new file path." +msgstr "Por favor, informe o novo caminho dos arquivos." + +#: ../wp-migrate-db.php:150 ../wp-migrate-db.php:771 +msgid "Migrate DB" +msgstr "Migrar Base de Dados" + +#: ../wp-migrate-db.php:175 +msgid "" +"Your database (SQL) file has been successfully generated. Your download " +"should begin any second." +msgstr "" +"Sua base de dados (SQL) foi gerada com sucesso. Seu download deve começar em " +"alguns segundos." + +#: ../wp-migrate-db.php:183 +msgid "Your database (SQL) file has been successfully generated and saved to" +msgstr "Sua base de dados (SQL) foi gerada com sucesso e salva em" + +#: ../wp-migrate-db.php:188 +msgid "Click here to download." +msgstr "Clique aqui para baixar." + +#: ../wp-migrate-db.php:199 +msgid "Non-Serialized Strings Replaced:" +msgstr "Strings não serializadas substituídas:" + +#: ../wp-migrate-db.php:205 +msgid "Serialized Strings Replaced:" +msgstr "Strings serializadas substituídas:" + +#: ../wp-migrate-db.php:238 +#, php-format +msgid "The directory %s needs to be writable." +msgstr "O diretório %s precisa ser gravável." + +#: ../wp-migrate-db.php:250 +msgid "" +"Sorry, there were errors with your form submission. Please correct them " +"below and try again." +msgstr "" +"Desculpe, mas há erros no formulário. Por favor, corrija-os abaixo e tente " +"novamente." + +#: ../wp-migrate-db.php:259 +msgid "" +"WP Migrate DB exports your database as a MySQL data dump (much like " +"phpMyAdmin), does a find and replace on URLs and file paths, then allows you " +"to save it to your computer. It even takes into account serialized data and " +"updates the string length values." +msgstr "" +"WP Migrate DB exporta sua base de dados como um MySQL dump (bem parecido com " +"o phpMyAdmin), faz um Localizar e Substituir nas URLs e Caminhos dos " +"Arquivos, então permite que você a salve sem seu computador. Ele ainda " +"considera os dados serializados e atualiza os valores de comprimento da " +"string." + +#: ../wp-migrate-db.php:262 +msgid "" +"Example: s:5:\"hello\" becomes s:11:\"hello world\"" +msgstr "" +"Exemplo: s:5:\"olá\" virará s:11:\"olá mundo\"" + +#: ../wp-migrate-db.php:270 +msgid "Current address (URL)" +msgstr "Endereço atual (URL)" + +#: ../wp-migrate-db.php:279 +msgid "New address (URL)" +msgstr "Novo endereço (URL)" + +#: ../wp-migrate-db.php:288 +msgid "Current file path" +msgstr "Caminho atual dos arquivos" + +#: ../wp-migrate-db.php:297 +msgid "New file path" +msgstr "Novo caminho dos arquivos" + +#: ../wp-migrate-db.php:305 +msgid "Data Options" +msgstr "Opções de Dados" + +#: ../wp-migrate-db.php:309 +msgid "Replace GUIDs" +msgstr "Substituir GUIDs" + +#: ../wp-migrate-db.php:315 +#, php-format +msgid "" +"Although the WordPress Codex emphasizes " +"that GUIDs should not be changed, this is limited to sites that are already " +"live. If the site has never been live, I recommend replacing the GUIDs. For " +"example, you may be developing a new site locally at dev.somedomain.com and " +"want to migrate the site live to somedomain.com." +msgstr "" +"Embora a Documentação do WordPress " +"enfatize que os GUIDs não devem ser substituídos, isso é limitado a sites " +"que já estejam no ar. Se o site ainda não estiver no ar, eu recomendo " +"substituir os GUIDs. Por exemplo, você deve estar desenvolvendo um site em " +"dev.algumdominio.com e quer migra-lo para produção em algumdominio.com." + +#: ../wp-migrate-db.php:325 +msgid "Do not export spam comments" +msgstr "Não exportar comentários spam" + +#: ../wp-migrate-db.php:334 +msgid "Do not export post revisions" +msgstr "Não exportar revisões de post" + +#: ../wp-migrate-db.php:339 +msgid "File Options" +msgstr "Opções de Arquivo" + +#: ../wp-migrate-db.php:343 +msgid "Save as file to your computer" +msgstr "Salvar como arquivo em seu computador" + +#: ../wp-migrate-db.php:353 +msgid "Compress file with gzip" +msgstr "Comprimir arquivo como gzip" + +#: ../wp-migrate-db.php:362 +msgid "Export Database" +msgstr "Exportar Base de Dados" + +#: ../wp-migrate-db.php:376 +msgid "Created & maintained by" +msgstr "Criado e mantido por" + +#: ../wp-migrate-db.php:379 +msgid "Profile" +msgstr "Perfil" + +#: ../wp-migrate-db.php:381 +msgid "Donate" +msgstr "Doar" + +#: ../wp-migrate-db.php:387 +msgid "Pro Version Has Arrived!" +msgstr "A Versão Pró chegou!" + +#: ../wp-migrate-db.php:392 +msgid "View Features →" +msgstr "Ver Recursos →" + +#: ../wp-migrate-db.php:393 +msgid "View Pricing →" +msgstr "Ver Preço →" + +#: ../wp-migrate-db.php:398 +msgid "Get 20% Off!" +msgstr "Ganhe 20% de Desconto!" + +#: ../wp-migrate-db.php:401 +#, php-format +msgid "" +"Subscribe to receive news & updates below and we'll instantly send you a " +"coupon code to get 20% off any WP Migrate DB Pro license." +msgstr "" +"Inscreva-se abaixo para receber novidades e atualizações e nós enviaremos " +"imediatamente um cupom com 20% de desconto para a compra de qualquer licença " +"do WP Migrate DB Pro." + +#: ../wp-migrate-db.php:405 +msgid "Your Name" +msgstr "Seu nome" + +#: ../wp-migrate-db.php:410 +msgid "Your Email" +msgstr "Seu email" + +#: ../wp-migrate-db.php:415 +msgid "Subscribe" +msgstr "Inscrever" + +#: ../wp-migrate-db.php:419 +msgid "" +"I promise I will not use your email for anything else and you can " +"unsubscribe with 1-click anytime." +msgstr "" +"Eu prometo que não usarei o seu e-mail para nada além disso e você poderá se " +"descadastrar a qualquer momento com " +"apenas um clique." + +#: ../wp-migrate-db.php:466 +msgid "Error getting table details" +msgstr "Erro ao carregar detalhes da tabela" + +#: ../wp-migrate-db.php:474 +#, php-format +msgid "Delete any existing table %s" +msgstr "Apagar qualquer tabela existente %s" + +#: ../wp-migrate-db.php:483 +#, php-format +msgid "Table structure of table %s" +msgstr "Estrutura da tabela %s" + +#: ../wp-migrate-db.php:489 +#, php-format +msgid "Error with SHOW CREATE TABLE for %s." +msgstr "Erro com SHOW CREATE TABLE para %s." + +#: ../wp-migrate-db.php:496 +#, php-format +msgid "Error getting table structure of %s" +msgstr "Erro ao carregar a estrutura da tabela de %s" + +#: ../wp-migrate-db.php:504 +#, php-format +msgid "Data contents of table %s" +msgstr "Conteúdo da tabela %s " + +#: ../wp-migrate-db.php:584 +#, php-format +msgid "End of data contents of table %s" +msgstr "Final do conteúdo da tabela %s " + +#: ../wp-migrate-db.php:668 +#, php-format +msgid "Table: %s" +msgstr "Tabela: %s" + +#: ../wp-migrate-db.php:685 +msgid "WordPress MySQL database migration" +msgstr "Migração da Base de Dados MySQL do WordPress" + +#: ../wp-migrate-db.php:686 +#, php-format +msgid "From %s to %s" +msgstr "De %s para %s" + +#: ../wp-migrate-db.php:688 +#, php-format +msgid "Generated: %s" +msgstr "Gerado: %s" + +#: ../wp-migrate-db.php:689 +#, php-format +msgid "Hostname: %s" +msgstr "Nme do host: %s" + +#: ../wp-migrate-db.php:690 +#, php-format +msgid "Database: %s" +msgstr "Base de dados: %s" + +#: ../wp-migrate-db.php:715 ../wp-migrate-db.php:718 +msgid "There was an error writing a line to the backup script:" +msgstr "Houve um erro ao escrever a linha do script de backup." diff --git a/languages/wp-migrate-db.pot b/languages/wp-migrate-db.pot new file mode 100644 index 0000000..079661c --- /dev/null +++ b/languages/wp-migrate-db.pot @@ -0,0 +1,270 @@ +msgid "" +msgstr "" +"Project-Id-Version: WP Migrate DB\n" +"POT-Creation-Date: 2013-06-12 19:59-0300\n" +"PO-Revision-Date: 2013-06-12 19:59-0300\n" +"Last-Translator: Rafael Funchal \n" +"Language-Team: Rafael Funchal \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" +"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: ..\n" + +#: ../wp-migrate-db.php:102 +msgid "show less" +msgstr "" + +#: ../wp-migrate-db.php:103 ../wp-migrate-db.php:311 +msgid "show more" +msgstr "" + +#: ../wp-migrate-db.php:124 +msgid "Please enter the current URL." +msgstr "" + +#: ../wp-migrate-db.php:128 +msgid "Please enter a new URL." +msgstr "" + +#: ../wp-migrate-db.php:132 +msgid "Please enter the current file path." +msgstr "" + +#: ../wp-migrate-db.php:136 +msgid "Please enter a new file path." +msgstr "" + +#: ../wp-migrate-db.php:150 ../wp-migrate-db.php:771 +msgid "Migrate DB" +msgstr "" + +#: ../wp-migrate-db.php:175 +msgid "" +"Your database (SQL) file has been successfully generated. Your download " +"should begin any second." +msgstr "" + +#: ../wp-migrate-db.php:183 +msgid "Your database (SQL) file has been successfully generated and saved to" +msgstr "" + +#: ../wp-migrate-db.php:188 +msgid "Click here to download." +msgstr "" + +#: ../wp-migrate-db.php:199 +msgid "Non-Serialized Strings Replaced:" +msgstr "" + +#: ../wp-migrate-db.php:205 +msgid "Serialized Strings Replaced:" +msgstr "" + +#: ../wp-migrate-db.php:238 +#, php-format +msgid "The directory %s needs to be writable." +msgstr "" + +#: ../wp-migrate-db.php:250 +msgid "" +"Sorry, there were errors with your form submission. Please correct them " +"below and try again." +msgstr "" + +#: ../wp-migrate-db.php:259 +msgid "" +"WP Migrate DB exports your database as a MySQL data dump (much like " +"phpMyAdmin), does a find and replace on URLs and file paths, then allows you " +"to save it to your computer. It even takes into account serialized data and " +"updates the string length values." +msgstr "" + +#: ../wp-migrate-db.php:262 +msgid "" +"Example: s:5:\"hello\" becomes s:11:\"hello world\"" +msgstr "" + +#: ../wp-migrate-db.php:270 +msgid "Current address (URL)" +msgstr "" + +#: ../wp-migrate-db.php:279 +msgid "New address (URL)" +msgstr "" + +#: ../wp-migrate-db.php:288 +msgid "Current file path" +msgstr "" + +#: ../wp-migrate-db.php:297 +msgid "New file path" +msgstr "" + +#: ../wp-migrate-db.php:305 +msgid "Data Options" +msgstr "" + +#: ../wp-migrate-db.php:309 +msgid "Replace GUIDs" +msgstr "" + +#: ../wp-migrate-db.php:315 +#, php-format +msgid "" +"Although the WordPress Codex emphasizes " +"that GUIDs should not be changed, this is limited to sites that are already " +"live. If the site has never been live, I recommend replacing the GUIDs. For " +"example, you may be developing a new site locally at dev.somedomain.com and " +"want to migrate the site live to somedomain.com." +msgstr "" + +#: ../wp-migrate-db.php:325 +msgid "Do not export spam comments" +msgstr "" + +#: ../wp-migrate-db.php:334 +msgid "Do not export post revisions" +msgstr "" + +#: ../wp-migrate-db.php:339 +msgid "File Options" +msgstr "" + +#: ../wp-migrate-db.php:343 +msgid "Save as file to your computer" +msgstr "" + +#: ../wp-migrate-db.php:353 +msgid "Compress file with gzip" +msgstr "" + +#: ../wp-migrate-db.php:362 +msgid "Export Database" +msgstr "" + +#: ../wp-migrate-db.php:376 +msgid "Created & maintained by" +msgstr "" + +#: ../wp-migrate-db.php:379 +msgid "Profile" +msgstr "" + +#: ../wp-migrate-db.php:381 +msgid "Donate" +msgstr "" + +#: ../wp-migrate-db.php:387 +msgid "Pro Version Has Arrived!" +msgstr "" + +#: ../wp-migrate-db.php:392 +msgid "View Features →" +msgstr "" + +#: ../wp-migrate-db.php:393 +msgid "View Pricing →" +msgstr "" + +#: ../wp-migrate-db.php:398 +msgid "Get 20% Off!" +msgstr "" + +#: ../wp-migrate-db.php:401 +#, php-format +msgid "" +"Subscribe to receive news & updates below and we'll instantly send you a " +"coupon code to get 20% off any WP Migrate DB Pro license." +msgstr "" + +#: ../wp-migrate-db.php:405 +msgid "Your Name" +msgstr "" + +#: ../wp-migrate-db.php:410 +msgid "Your Email" +msgstr "" + +#: ../wp-migrate-db.php:415 +msgid "Subscribe" +msgstr "" + +#: ../wp-migrate-db.php:419 +msgid "" +"I promise I will not use your email for anything else and you can " +"unsubscribe with 1-click anytime." +msgstr "" + +#: ../wp-migrate-db.php:466 +msgid "Error getting table details" +msgstr "" + +#: ../wp-migrate-db.php:474 +#, php-format +msgid "Delete any existing table %s" +msgstr "" + +#: ../wp-migrate-db.php:483 +#, php-format +msgid "Table structure of table %s" +msgstr "" + +#: ../wp-migrate-db.php:489 +#, php-format +msgid "Error with SHOW CREATE TABLE for %s." +msgstr "" + +#: ../wp-migrate-db.php:496 +#, php-format +msgid "Error getting table structure of %s" +msgstr "" + +#: ../wp-migrate-db.php:504 +#, php-format +msgid "Data contents of table %s" +msgstr "" + +#: ../wp-migrate-db.php:584 +#, php-format +msgid "End of data contents of table %s" +msgstr "" + +#: ../wp-migrate-db.php:668 +#, php-format +msgid "Table: %s" +msgstr "" + +#: ../wp-migrate-db.php:685 +msgid "WordPress MySQL database migration" +msgstr "" + +#: ../wp-migrate-db.php:686 +#, php-format +msgid "From %s to %s" +msgstr "" + +#: ../wp-migrate-db.php:688 +#, php-format +msgid "Generated: %s" +msgstr "" + +#: ../wp-migrate-db.php:689 +#, php-format +msgid "Hostname: %s" +msgstr "" + +#: ../wp-migrate-db.php:690 +#, php-format +msgid "Database: %s" +msgstr "" + +#: ../wp-migrate-db.php:715 ../wp-migrate-db.php:718 +msgid "There was an error writing a line to the backup script:" +msgstr "" diff --git a/wp-migrate-db.php b/wp-migrate-db.php index 1ded26e..06999a2 100644 --- a/wp-migrate-db.php +++ b/wp-migrate-db.php @@ -23,6 +23,8 @@ // which in turn borrowed from the phpMyAdmin project. // Thanks to both for GPL. +// Load textdomain +load_plugin_textdomain( 'wp-migrate-db', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); // Define the directory seperator if it isn't already if ( !defined( 'DS' ) ) { @@ -95,6 +97,13 @@ function handle_request() { wp_enqueue_style( 'wp-migrate-db-styles', $src ); $src = plugins_url( 'asset/js/script.js', __FILE__ ); wp_enqueue_script( 'wp-migrate-db-script', $src, array( 'jquery' ), false, true ); + + $wp_migrate_db_translate_script = array( + 'show_less' => __( 'show less', 'wp-migrate-db' ), + 'show_more' => __( 'show more', 'wp-migrate-db' ) + ); + + wp_localize_script( 'wp-migrate-db-script', 'wp_migrate_db_translate_script', $wp_migrate_db_translate_script ); } function get_filename( $datetime, $gzip ) { @@ -138,7 +147,7 @@ function options_page() { ?>
-

Migrate DB

+

@@ -163,18 +172,20 @@ function options_page() { add_action( 'admin_head-settings_page_wp-migrate-db', array( $this, 'admin_head' ) ); ?>

- Your database (SQL) file has been successfully generated. - Your download should begin any second. +

- Your database (SQL) file has been successfully generated and - saved to
upload_dir . DS . $this->get_filename( $this->datetime, isset( $_POST['gzipfile'] ) ); ?>. - Click - here to download. + '; + echo $this->upload_dir . DS . $this->get_filename( $this->datetime, isset( $_POST['gzipfile'] ) ); + echo '.'; + ?> +

- Non-Serialized Strings Replaced: replaced['nonserialized']['count']; ?>
- Serialized Strings Replaced: replaced['serialized']['count']; ?>
+ + replaced['nonserialized']['count']; + ?> +
+ + replaced['serialized']['count']; + ?> +

- The directory upload_dir; ?> needs - to be writable. + upload_dir ); ?>

@@ -227,8 +247,7 @@ function options_page() {

- Sorry, there were errors with your form submission. - Please correct them below and try again. +

@@ -237,13 +256,10 @@ function options_page() { ?>

- WP Migrate DB exports your database as a MySQL data dump (much like phpMyAdmin), - does a find and replace on URLs and file paths, then allows you to save - it to your computer. It even takes into account serialized data and updates the - string length values. +

- Example: s:5:"hello" becomes s:11:"hello world" + s:5:"hello" becomes s:11:"hello world"', 'wp-migrate-db' ); ?>

@@ -251,7 +267,7 @@ function options_page() { - + @@ -260,7 +276,7 @@ function options_page() { - + @@ -269,7 +285,7 @@ function options_page() { - + @@ -278,7 +294,7 @@ function options_page() { - + @@ -286,21 +302,17 @@ function options_page() { - Data Options + + - show more + @@ -310,7 +322,7 @@ function options_page() { @@ -319,16 +331,16 @@ function options_page() { - File Options + @@ -338,7 +350,7 @@ function options_page() { @@ -347,7 +359,7 @@ function options_page() {

- +

@@ -361,52 +373,50 @@ function options_page() {
-

Created & maintained by

+

Brad Touesnard

- Profile +    - Donate +

@@ -758,7 +768,7 @@ function download_file() { } function admin_menu() { - $this->hookname = add_management_page( 'Migrate DB', 'Migrate DB', 'export', 'wp-migrate-db', array( $this, 'options_page' ) ); + $this->hookname = add_management_page( __( 'Migrate DB', 'wp-migrate-db'), __( 'Migrate DB', 'wp-migrate-db'), 'export', 'wp-migrate-db', array( $this, 'options_page' ) ); add_action( 'load-' . $this->hookname , array( $this, 'handle_request' ) ); } @@ -779,4 +789,4 @@ function wp_migrate_db_init() { $wpmdb = new WP_Migrate_DB(); } -add_action( 'init', 'wp_migrate_db_init' ); +add_action( 'init', 'wp_migrate_db_init' ); \ No newline at end of file