Git Product home page Git Product logo

Comments (18)

rkhaotix avatar rkhaotix commented on September 23, 2024

gorudonu,

I'll branch the master repo and make some modifications, in a few hours you can get the patched code and test it ok?

from pgmodeler.

charafau avatar charafau commented on September 23, 2024

No problem. I will test the patch when it's done.

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

Can you print the values of the envvars PGMODELER_* on the startup script and paste here? I've suspect that some variables are not defined correctly. Other thing, the user you execute pgmodeler have full access rights on the path "lang"?

from pgmodeler.

charafau avatar charafau commented on September 23, 2024

Sure, when you mentioned it I think we got an bug here:

#/bin/bash
export PGMODELER_ROOT=pwd/build
export PGMODELER_CONF_DIR=$PGMODELER_ROOT/conf
export PGMODELER_SCHEMAS_DIR=$PGMODELER_ROOT/schemas
export PGMODELER_LANG_DIR=$PGMODELER_ROOT/lang
export PGMODELER_PLUGINS_DIR=$PGMODELER_ROOT/plugins
export LANG=pt_BR.UTF-8
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGMODELER_ROOT/lib

$PGMODELER_ROOT/pgmodeler

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

The LANG var needs to be changed to "en_US.UTF-8" and previously I'm meant you paste the values of variables at runtime... ^^)

Try to execute the script below:

#/bin/bash
export PGMODELER_ROOT=`pwd`/build
export PGMODELER_CONF_DIR=$PGMODELER_ROOT/conf
export PGMODELER_SCHEMAS_DIR=$PGMODELER_ROOT/schemas
export PGMODELER_LANG_DIR=$PGMODELER_ROOT/lang
export PGMODELER_PLUGINS_DIR=$PGMODELER_ROOT/plugins
export LANG=en_US.UTF-8
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGMODELER_ROOT/lib

echo $PGMODELER_ROOT
echo $PGMODELER_CONF_DIR
echo $PGMODELER_SCHEMAS_DIR
echo $PGMODELER_LANG_DIR
echo $PGMODELER_PLUGINS_DIR

$PGMODELER_ROOT/pgmodeler 

from pgmodeler.

charafau avatar charafau commented on September 23, 2024

Yeah I thought that's a 'bug' there. I don't think you need that variable anyway. This variable is set in the system files so you're just overwriting it here. I checked with changed variable and without it and it works ;)

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

Great! IAnd the changes I've made to code worked well! Now pgModeler try to load the language related to the system's $LANG var if it fails.. fallsback to en_US!

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

I've just pushed the branch "issue#23", can you compile the code and see if it work on your system?
Thanks!

from pgmodeler.

gjunming avatar gjunming commented on September 23, 2024

hi rhhaotix:

I am doing your suggestion to create a new translate file. and will re-complie with the new lang value.

and an suggestion, that with new thread with similar topic to old one, I think it is better to close the new one, and to load new guys to old one, there are more informations, we discussed.

:)

from pgmodeler.

charafau avatar charafau commented on September 23, 2024

Cloned, changes branch and compiled. Works for me :) Thanks !

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

Very good @gorudonu! Thank you so much. Now I'll merge these changes to master branch! ;)

And @gjunming, I cannot undertand what do you mean:

and an suggestion, that with new thread with similar topic to old one, I think it is better to close, the load new guys to
old one, there are more informations, we discussed.

Are you suggesting create an new Issue to discuss language contribution?

from pgmodeler.

gjunming avatar gjunming commented on September 23, 2024

@rkhaotix

I mean when there are similar topics opened, it is better closed the new one, and keep the discussion in old one, there are more information. maybe after the guys read the old information can get thire question's answer.! u needn't to reply the similar questions with many times. :)

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

Oh, thank you for the tip! I'll do this! ;)

from pgmodeler.

gjunming avatar gjunming commented on September 23, 2024

hi @rkhaotix that I have test, when I create new .ts file and have some changed some words, and then re-compile.
after change the lang, I got the changed words.

I would upload my .ts later.

from pgmodeler.

mingshun avatar mingshun commented on September 23, 2024

@rkhaotix , it works! But I still got some error message in Portuguese. Like "Restrições do tipo chave-primária, chave-estrangeira ou única devem possuir pelo menos uma coluna relacionada às mesmas! Para chaves-estrangeira devem ser selecionadas, adicionalmente, as colunas referenciadas!"

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

@mingshun It's seems that some translated phrases missing or incorrect. I'll double check the en_US file. Thanks.

from pgmodeler.

rkhaotix avatar rkhaotix commented on September 23, 2024

For better compatibility to other systems/locales in the next update pgModeler will be on English by default. This is the first step to an global refactor of the source code.

At the moment pgModeler doesn't handles UTF-16 (Chinese? Japanese?) characters this is other motivation to change the default language to en_US!

The next release will be delayed a little but is for good reason! ^^)

from pgmodeler.

gjunming avatar gjunming commented on September 23, 2024

that chinese also works well in utf-8
在 2012-10-1 上午7:24,"Raphael Araújo e Silva" [email protected]写道:

For better compatibility to other systems/locales in the next update
pgModeler will be on English by default. This is the first step to an
global refactor of the source code.

At the moment pgModeler doesn't handles UTF-16 (Chinese? Japanese?)
characters this is other motivation to change the default language to en_US!

The next release will be delayed a little but is for good reason! ^^)


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-9019132.

from pgmodeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.