#190 Support Language Like chinese or japanese

1.3.11
open
nobody
None
1
2013-03-29
2013-03-23
lolog
No

I think Lives need to support language like chinese or japanese.
U may tell me where to add the codes, i can do it myself, When i finish this job , i wiil submit the changed codes.

Related

Bugs: #190

Discussion

  • Salsaman
    Salsaman
    2013-03-23

    All translations are done through Launchpad: https://translations.launchpad.net/lives

    You may join the relevant translation groups and contribute to the ongoing translation effort.

     
    • lolog
      lolog
      2013-03-25

      OK, the problem i met was not the software's translations.
      The problem i met was that when i wrote a chinese on a frame, then the chinese show in the frame not normal, just a "?".

       
  • Salsaman
    Salsaman
    2013-03-25

    LiVES uses gtk+ for the interface, so its supports utf-8 by default. Therefore the problem is most likely with your machine. Perhaps you do not have the correct locale support installed in the operating system ?

     
    • lolog
      lolog
      2013-03-26

      The system i using is ubuntu, default language encode is utf-8.
      And when i use vim or gedit, the default language encode all are utf-8.
      so i think it's not the problem with my machine.

      When the LiVES starting, all selections are setted by default.

       
  • Salsaman
    Salsaman
    2013-03-26

    Well, maybe you can take a look at the code. In main.c, there are these lines:

    #ifdef ENABLE_NLS
      trString=NULL;
      bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
    #ifdef UTF8_CHARSET
      bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
    #endif
      textdomain (GETTEXT_PACKAGE);
    #endif
    

    and in support.c:

    gchar *translate(const char *String) {
      if (trString!=NULL) g_free(trString);
      if (strlen(String)) trString=g_locale_to_utf8 (dgettext (PACKAGE, String),-1,NULL,NULL,NULL);
      else trString=g_strdup(String);
      return trString;
    }
    

    support.h:

    #  include <libintl.h>
    #  undef _
    #  define _(String) (translate(String))
    

    That is all the code that exists in LiVES regarding translations.

     
    Last edit: Salsaman 2013-03-26
  • lolog
    lolog
    2013-03-28

    I have download LiVES's source(version is 1.8.2), and compile it ok.
    But when i run 'lives' in comand line,it reports an error which list in the mail's attach as a image.
    I know the error means what, but i don't konw how to do with it?
    If there were some errors in the makefile, that after i run make install in command line, the make cann't install the effect plugins automatically?

    At 2013-03-26 20:43:38,Salsaman gfinch@users.sf.net wrote:

    Well, maybe you can take a look at the code. In main.c, there are these lines:

    ifdef ENABLE_NLS

    trString=NULL;
    bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);

    ifdef UTF8_CHARSET

    bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");

    endif

    textdomain (GETTEXT_PACKAGE);

    endif

    and in support.c:

    gchar translate(const char String) {
    if (trString!=NULL) g_free(trString);
    if (strlen(String)) trString=g_locale_to_utf8 (dgettext (PACKAGE, String),-1,NULL,NULL,NULL);
    else trString=g_strdup(String);
    return trString;
    }

    support.h:

    include
    undef
    define
    (String) (translate(String))

    That is all the code that exists in LiVES regarding translations.

    [bugs:#190] Support Language Like chinese or japanese

    Status: open
    Created: Sat Mar 23, 2013 03:03 AM UTC by lolog
    Last Updated: Mon Mar 25, 2013 11:46 AM UTC
    Owner: nobody

    I think Lives need to support language like chinese or japanese.
    U may tell me where to add the codes, i can do it myself, When i finish this job , i wiil submit the changed codes.

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/lives/bugs/190/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #190

  • lolog
    lolog
    2013-03-28

    After i run 'lives' in command line, the follow results are response, and pop up an error dialog in attachment.
    LiVES comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details.

    LiVES error: Unknown effect rotozoomrotozoomeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect lifeTVlifeTVeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect bump2dbumpmapsalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect fireTVfireTVeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect vertigovertigoeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect edgeedge detecteffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect textfuntextfunsalsaman2 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect vertigovertigoeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect blurzoomblurzoomeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect mirrorsmirrorxsalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect mirrorsmirrorysalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect mirrorsmirrorxysalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect negatenegatesalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect rippleTVrippleTVeffectTV1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect posteriseposterisesalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect simple_blendchroma blendsalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect multi_blendsblend_darkensalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect multi_blendsblend_lightensalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect multi_blendsblend_overlaysalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect multi_blendsblend_dodgesalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect multi_blendsblend_screensalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect simple_blendnegative luma overlaysalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect simple_blendluma overlaysalsaman1 in /home/administrator/.lives-dir/default.keymap

    LiVES error: Unknown effect plasmaplasmasalsaman/w.p van paasen1 in /home/administrator/.lives-dir/default.keymap

     
    Last edit: lolog 2013-03-28
    Attachments
  • Salsaman
    Salsaman
    2013-03-28

    Very strange...

    Can you send the output from "make install".

     
  • lolog
    lolog
    2013-03-28

    make clean;
    sudo make;
    sudo make install >> ~/makeinst.txt

     
    Attachments
  • Salsaman
    Salsaman
    2013-03-28

    Ah OK. If you are installing to an alternate location (like /usr/local), you need to edit your ~/.lives file, and change the following two entries:

    prefix_dir

    and:

    lib_dir

    Then it should work !

     
    • lolog
      lolog
      2013-03-28

      I have changed the installing location as '/usr'
      Redo make;make install;lives in command line.
      and i can see loading dialog, then the follow output shows.

      LiVES 1.8.2
      Copyright 2002-2012 Gabriel Finch (salsaman@gmail.com) and others.
      LiVES comes with ABSOLUTELY NO WARRANTY
      This is free software, and you are welcome to redistribute it
      under certain conditions; see the file COPYING for details.

      LiVES error: Invalid effect farneback_analyserfarneback_analysersalsaman1 found in compound effect image_stabilizer, line 4

      LiVES error: Invalid effect farneback_analyserfarneback_analysersalsaman1 found in compound effect motion_analyser, line 4

       
  • Salsaman
    Salsaman
    2013-03-29

    That is nothing to worry about.

    If you install openCV (optional), that warning will go away.

     
    • lolog
      lolog
      2013-03-29

      I have read README file.
      optional sources list as follow:
      Optional - libvisual-actors, frei0r-plugins
      and lives can't run normally,just exit.