Fork me on GitHub

gettext module  Bottom

  • i ve got a when translating a theme

    Code

    DEBUG OUTPUT:
        ERROR: This doesn't look like a Gettext enabled module.
        1. Make sure this is a module that has been written for Zikula 1.2.0+
           The module should not have a pnlang/ folder and it must have a locale/
        2. First make sure the name you entered for the folder matches exactly
           with the module Folder name (CaSE SenSITive)


    i ve got no pnlang gfolder

    i creat an empty locale directory

    do we have to translate all the pnml into gt to have the module pot file ?



    edited by: mumuri, datetimebrief
  • Code

    for another theme, i ve got this
        DEBUG OUTPUT:
        COMPILING TEMPLATES...

    SCANNING THE FOLLOWING FILES FOR TRANSLATION STRINGS
    ./version.php
    ./lang/fra/global.php
    ./lang/fra/version.php
    ./lang/eng/global.php
    ./lang/eng/version.php
    ./templates/modules/Newsletter/plugins/function.forumimage.php
    ./templates/modules/Search/plugins/function.similarbookresults.php
    ./templates/modules/Search/plugins/function.concattitle.php
    ./templates/modules/Search/plugins/function.tagcloud.php
    ./templates/modules/Search/plugins/function.searchrezo.php
    ./templates/modules/pnForum/plugins/function.randompics.php
    ./templates/modules/pnForum/plugins/function.topicspager.php
    ./templates/modules/pnForum/plugins/function.printtopic_button.php
    ./templates/modules/pnForum/plugins/function.similardiscussions.php
    ./templates/modules/pnForum/plugins/function.concatarray.php
    ./templates/modules/pnForum/plugins/function.lastntopics.php
    ./templates/modules/pnForum/plugins/function.forumslist.php
    ./templates/modules/pnForum/plugins/modifier.orthogen.php
    ./templates/modules/pnForum/plugins/function.readwebnetterforum.php
    ./templates/modules/pnForum/plugins/function.portallist.php
    ./templates/modules/pnForum/plugins/modifier.viewtopiclink.php
    ./templates/modules/pnForum/plugins/function.forumspager.php
    ./plugins/function.initringboard.php
    ./plugins/modifier.shorter.php

    EXTRACTING TRANSLATION STRINGS...
    Done.
    GENERATING POT FILE...
    msgmerge: error while opening "/tmp/d644515f9af432d5e2baa28e3db43b421c34444c/theme_forums.pot" for reading: No such file or directory
    ERROR: Failed to generate POT file - see output for explanation.
  • What exactly do you want to do?
    a) Do you want to convert an old theme (defines) to a gettext theme?
    b) Or do you want to extract the pot-file of an existing gettext theme?

    => a)
    No online conversion available. Please read the instructions in the Wiki.

    => b)
    If you are using the Gettext Extractor it is not allowed to have the directory pnlang/ or a pot-file in the package.


    Duplicate thread here.
  • i wan't to convert a theme, so there is no utils to do that ?
    can i generate the potfile when all my language label are converted with gt tags
    how to generate the potfile at the begining for my theme ?
    http://community.zikula.org/module-Wiki-backlinks-tag-UsingGettextTemplates.htm



    edited by: mumuri, datetimebrief
  • There's another script to convert a component (module or theme): xmigratepnmlcomponent.sh

    If someone doesn't knows where is the utility module for the Gettext conversion, it's here: svn/core/Misc/Utilities/Gettext

    --
    - Mateo T. -
    Mis principios... son mis fines
  • on what this script is better than the other one ??
  • Quote

    i wan't to convert a theme, so there is no utils to do that ?
    xmigratepnmlcomponent.sh is needed here

    Quote

    how to generate the potfile at the begining for my theme ?
    xtractcomponent.sh extracts the POT

    This wiki page explains the conversion process icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • there is a lot of sh in the helpers folder, only this one are important ?

    is this possible to do a "alt+c" on multiple entry in poedit ?



    edited by: mumuri, datetimebrief

This list is based on users active over the last 60 minutes.