Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Niellles

    (@niellles)

    Thank you for your answer but I’m not exactly sure how that answers my question…

    I’ve done all printing of text as suggested by the codex:
    To fetch a string simply use __(‘String name’,’your-unique-name’); to return the translation or _e(‘String name’,’your-unique-name’); to echo the translation. Translations will then go into your plugin’s /languages folder.

    Then it talks about loading the language files (loading the whole directory):
    load_plugin_textdomain().

    What I want to do is something like this:

    switch($_GET['lang']) {
        case 'en': ...load this particular file... ; break;
        case 'nl': ...load that particular file...; break;
        default: ...load this particular file...; break;
    }

    I read the codex on load_textdomain() and I think that’s exactly what I’ll need instead of load_plugin_textdomain(). Or am I mistaking?

Viewing 1 replies (of 1 total)