• Hi, I set permissions to 777 in my languages folder and files in it, but when I create .mo file with one modify (WordPress user field: “AIM” > “Matricola”) I see in server Linux one “empty” file -it_IT.mo with this content:

    Project-Id-Version: 3.4.x
    Report-Msgid-Bugs-To:
    POT-Creation-Date:
    PO-Revision-Date: 2013-01-23 08:48:31+0000
    Last-Translator:
    Language-Team:
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Plural-Forms: nplurals=2; plural=n != 1;
    X-Poedit-Language:
    X-Poedit-Country:
    X-Poedit-SourceCharset: utf-8
    X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;
    X-Poedit-Basepath: ../../
    X-Poedit-Bookmarks:
    X-Poedit-SearchPath-0: .
    X-Textdomain-Support: yes

    and original file is not overwritten with my corrections.

    https://www.ads-software.com/extend/plugins/codestyling-localization/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author codestyling

    (@codestyling)

    Which WP version you re using?
    Is it a single or multisite install?
    Does the server executing PHP not have the ftp user?
    Normally not permission change is required, either WP uses FTP or direct access.

    Thread Starter nigrantonio

    (@nigrantonio)

    Hi, WP is 3.5 (I remember that I specify it on first message, that’s because I can read it on right column?).
    It’s a single (simple) site install.
    I don’t know if there is Ftp users, because I connect with it using WinSCP with SFTP protocol and root account. Is this a clue for you?
    I use this plugin: SSH SFTP Updater Support and all functions are OK.

    Plugin Author codestyling

    (@codestyling)

    Hmm, I have to analyse this carefully, because it seems, that this plugin replaces the WordPress built in SFTP class by it’s own class and also uses a modified copy of the original credential logic.

    My plugin is related to use the file system methods as WordPress prodived and it could be, that this plugin shortcuts something which leads to unexpected behavoir.

    Are you able to perform the same with the build in SFTP solution from WordPress core instead of this plugin for testing purpose only?

    Thread Starter nigrantonio

    (@nigrantonio)

    I’m a Java developer, so you can talk technically with me, but I’m not so smart in this WP things, if you can send me code to try that, I’ll test it for you because I can put my hand on our server. TIA!

    Plugin Author codestyling

    (@codestyling)

    SFTP should be presented by WordPress automatically, if you try to install a plugin and a direct access is not possible. So deactivation of SFTP plugin should lead to 1 of 2 cases:
    a) direct works (without SFTP)
    b) direct doesn’t work, so the credential screen of WordPress core pops up and asks either for FTP, SFTP or SSH.

    So deactivation of the SFTP plugin should lead to one of the above cases during plugin installation. Please test install a free chosen plugin from repo for testing purpose.

    If installation works without this plugin, please try also translation. It should work too.

    Thread Starter nigrantonio

    (@nigrantonio)

    I have to install that plugin because on our server we have SSH2 and WordPress doesn’t manage it without plugins. I put credential into wpconfig and with that asking for credential by WP core doesn’t popup anymore. I try also with files of themes and with them your plugin works good… I think it’s a problem with WordPress main localization files?

    P.S. Without modify permissions your plugin shows red labels, so I must put 777 before to show green labels. Are the right steps?

    Plugin Author codestyling

    (@codestyling)

    not really, they should be shown in green by at least 644.
    I will check the access to the files for permissions. May be that permission will by requested by script instead of user behind SSH.

    Thread Starter nigrantonio

    (@nigrantonio)

    NO, I can confirm that with 644 there are RED labels, but it permitt me to modify .po file! If I try to create .mo file also, it always create -it_IT.mo (empty) and don’t change original it_IT.mo. SO green OR red labels have same behaviour.

    Plugin Author codestyling

    (@codestyling)

    Do you have a Suhosin extension running limiting the post parameters to 20 or any other post param count limitation ?

    If so, the textdomain won’t be transfered and ends up with leading “-” char for any “admin|continent-cities|admin-network” textdomains/mo files.
    Currently I can’t find any other way to produce this result.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error in creation .mo file it_IT.mo’ is closed to new replies.