Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author grosbouff

    (@grosbouff)

    Thread Starter gmacev

    (@gmacev)

    Still not working. I translated the lines and created a .mo file called bbppu-lt_LT.mo , added it to languages folder and still it doesn’t display my translation.

    Plugin Author grosbouff

    (@grosbouff)

    Let me check.
    I guess there is a problem in the code, not loading the file correctly.

    Plugin Author grosbouff

    (@grosbouff)

    Could you try with the last rev (798780) ?
    I changed

    public function load_plugin_textdomain(){
    
    		load_plugin_textdomain($this->prefix, FALSE, $this->plugin_dir.'/languages/');
    
    	}

    to

    public function load_plugin_textdomain(){
    
    		load_plugin_textdomain($this->prefix, FALSE, $this->plugin_dir.'languages/');
    
    	}

    Which is maybe what was the error…

    Thread Starter gmacev

    (@gmacev)

    Still the lines “Marked as read” and “Mark all as read” are not translated. Though, when I change the plugin name “bbPress Pencil Unread” line, it works as expected. Which implies to me that the lang file is being loaded. Hope this helps.

    I came across this error earlier today and debugged the code for about an hour… You have to change the load_plugin_textdomain function call to:

    load_plugin_textdomain($this->prefix, FALSE, dirname($this->basename) . '/languages/');

    After this change the l10n files are also loaded successfully outside of the administration area.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Translation’ is closed to new replies.