WordPress.org

Support

Support » Plugins and Hacks » Google Analyticator » [Resolved] Localization / Translation

[Resolved] Localization / Translation

  • Hello,

    I found out, that the translation in Google analyticator doesn´t work everywhere, for example the dashboard widget.

    I translated most important things to german, but not every string will be replaced.
    For example
    “Visits Over the Past 30 Days”
    “Site Usage”
    “Top Pages”
    “Top Referrers”
    “Top Searches”

    There is no mistake in the language file, there must be a error in the php-files.

    Can the developer Team repair this please.

    Thank you

    http://wordpress.org/extend/plugins/google-analyticator/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hello,

    I second that!
    There is absolutely no way of translating the generated data strings, even chopping and slicing directly in the strings, inside the PHP code. It seems to me that the presented text is generated somewhere else…

    And yes, I am talking about the same exact terms as Simon Franke.

    “Visits Over the Past 30 Days”
    “Site Usage”
    “Top Pages”
    “Top Referrers”
    “Top Searches”

    Thanks so much for your attention!
    G.

    the same here, no localization files, no pot file also. What’s up?

    Thanks for flagging. Will take a look and see if we can implement it. I know some of the code from the dashboard is generated via javascript. Will see what we can do

    Cheers

    I’ve made Polish translation, i had to change some lines in google-analicator.php, beacuse you don’t use ‘_e()’ function sometimes – please use winmergeor diff to check, what is changed.
    Files are here – Dropbox link. Everything is working, but i’m not sure about pop-up google authentication, it stoped working after translations changes.

    Some lines of theme widget also aren’t translate-able.

    Well, there must be a bug, cause it is working on one wordpress and only half working (without texts from first post) on second, with empty stats.

    I’ve found bug. it is 125 line of google-analytics-summary-widget.php
    This “if” should be always true.

    # If WP_DEBUG is true,.
    if ( ( defined('WP_DEBUG') && WP_DEBUG ) || ( false === ( $ga_output = get_transient( 'ga_admin_dashboard_'. GOOGLE_ANALYTICATOR_VERSION ) ) ) || true ) {

    Also i had to copy
    <td><?php _e('% New Visits', 'google-analyticator'); ?></td> to 338 line.

    Now everything is in right language, even if there are no stats (if there are stats on GA, it is working anyway).
    Cheers

    It would be nice to have a collection of translations for this plugin.
    Or you could include the translations already in the main zip file.

    Just load the localization file in ajaxWidget function (line 235)

    # Load the localization information
    $plugin_dir = basename(dirname(__FILE__));
    load_plugin_textdomain('google-analyticator', 'wp-content/plugins/' . $plugin_dir . '/localizations', $plugin_dir . '/localizations');

    `

    but it doesn’t translate for last 30 days, why ???

    Sorry it works the same without, don’t do that.

    Here are version 6.4.4.3 “translateable” with polish translation. Everything is translated, everything works (with my “if – always true” hack).
    https://dl.dropboxusercontent.com/u/45209676/google-analyticator-polish.zip

    @video User Manuals – please add _e() etc. where it is needed – you just need to compare my files to your, it is just a minute.

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    @mleczakm have you tried contacting Video User Manuals directly? From their site if you click Support then it appears that new page has a contact option.

    @video, What is you email? i would like to send you the Hebrew (he_IL) translation.

    @jan Dembowski thanks, now I have email contact with @video, hope they repair actual version soon.

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    @video, What is you email?

    Rami, it’s really discouraged to share emails like that here. Visit the plugin authors site, click the support link and you’ll see another contact link.

    Ok, thanks jan.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] Localization / Translation’ is closed to new replies.
Skip to toolbar