WordPress.org

Ready to get started?Download WordPress

Forums

Codestyling Localization
[resolved] Unable to find a theme (7 posts)

  1. Misamee
    Member
    Posted 1 year ago #

    CodeStyling Localization seems to be unable to see the theme I'm currently using.

    The theme is "Ultimatum Theme" (a premium theme).
    The theme has a "languages" folder with at least read permission and insite just an "index.html" and an "ultimatum.pot" file.

    However, CodeStyling Localization doesn't list this theme at all.

    Any idea why this is happening and how to solve it?

    http://wordpress.org/extend/plugins/codestyling-localization/

  2. entr
    Member
    Posted 1 year ago #

    Alright, this happened to me too. Took me quite some time to figure what is causing it.

    codestyling-localization.php @ line 689 - 693

    Author puts a comment there "//WORDPRESS Version 3.4 changes theme handling!" and yet doesn't benefit from it.

    I'm just gonna post a quicky and dirty fix, hoping others could use it untill there's a official fix.

    Just before line 694 }else{ insert the following line of code:

    $data['base_path'] = $values->get_stylesheet_directory() . '/';

    We are basically overwriting $data['base_path'].

  3. Misamee
    Member
    Posted 1 year ago #

    At line 694 I have something completely different: are you sure you're talking of the latest version of the plugin?

    For instance, the comment "//WORDPRESS Version 3.4 changes theme handling!" is at line #716 in my case.

    By the way, doing what you've suggested (but before line #722) it seems that the issue is solved.

    I hope the developers will update their plugin.

    Thank you entr!

  4. Kenth Hagström
    Member
    Posted 1 year ago #

    This solved a similar problem of mine, my own custom themes refused to show up in the codestyling localization plugin when the functions.php were present (loading textdomain in header.php with load_theme_textdomain), when I renamed the functions.php file themes appeared in the list!

    By adding this fix, suddenly all themes where listed even when the functions.php were present.

    Weird!

    Thanks entr!

  5. codestyling
    Member
    Plugin Author

    Posted 1 year ago #

    this will be repaired with version 1.99.25 of my plugin. Themes than againg will be detected as expected.

  6. apulana
    Member
    Posted 1 year ago #

    I'm using the free theme Amphion Lite and Codestyling Localization version 1.99.27 and still it doesn't recognize the theme. Unfortunatelly I'm not PHP dev (not even close!) Can you help? http://izidomains.com/ementa/

    thanks for your help

  7. codestyling
    Member
    Plugin Author

    Posted 1 year ago #

    This theme is not written to be translatable! I recycles some texts from WordPress main translation file if the texts are contained there. But it doesn't load any own translation file (no support coded by theme author) and it uses many hard coded strings within the theme files (admin as also frontend php files).
    Please contact the Theme Author and ask for a translatable version of this theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.