WordPress.org

Ready to get started?Download WordPress

Forums

Google Analyticator
[resolved] Localization / Translation (19 posts)

  1. Simon Franke
    Member
    Posted 1 year ago #

    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/

  2. cospefogo
    Member
    Posted 1 year ago #

    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.

  3. Chris Kepinski
    Member
    Posted 1 year ago #

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

  4. Video User Manuals
    Member
    Plugin Author

    Posted 1 year ago #

    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

  5. mleczakm
    Member
    Posted 1 year ago #

    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.

  6. mleczakm
    Member
    Posted 1 year ago #

    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

  7. nb000
    Member
    Posted 1 year ago #

    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.

  8. kalyx
    Member
    Posted 1 year ago #

    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');

    `

  9. kalyx
    Member
    Posted 1 year ago #

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

  10. kalyx
    Member
    Posted 1 year ago #

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

  11. mleczakm
    Member
    Posted 1 year ago #

    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.

  12. @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.

  13. Rami Yushuvaev
    Member
    Posted 1 year ago #

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

  14. mleczakm
    Member
    Posted 1 year ago #

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

  15. @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.

  16. Rami Yushuvaev
    Member
    Posted 1 year ago #

    Ok, thanks jan.

  17. mleczakm
    Member
    Posted 1 year ago #

    @Video realesed new version - with old (same as up here) bugs. Here is packed up fully-translateable version with polish language (changes only in summary widget).

    https://dl.dropboxusercontent.com/u/45209676/google-analitycator-6.4.5.zip

  18. mleczakm
    Member
    Posted 8 months ago #

    And again, version which is fully-translateable. List of changes:
    1. Added __() and _e() in lines 198, 224, 225 and 226 of google-analytics-summary-widget.php
    2. IF from line 244 in the same file is set to always TRUE.

    Download from my dropbox. No other files are changed. Added polish translation.

    Google Analyticator 6.4.7.1 - polish

  19. Video User Manuals
    Member
    Plugin Author

    Posted 7 months ago #

    This has been added to 6.4.7.2

    Thanks so much for sticking with us

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.