Comments (18)
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.
No problem. I will test the patch when it's done.
from pgmodeler.
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.
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.
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.
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.
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.
I've just pushed the branch "issue#23", can you compile the code and see if it work on your system?
Thanks!
from pgmodeler.
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.
Cloned, changes branch and compiled. Works for me :) Thanks !
from pgmodeler.
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.
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.
Oh, thank you for the tip! I'll do this! ;)
from pgmodeler.
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.
@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.
@mingshun It's seems that some translated phrases missing or incorrect. I'll double check the en_US file. Thanks.
from pgmodeler.
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.
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)
- Improve sorting in creation script HOT 2
- Include ON DELETE and ON UPDATE actions in data dictionary
- Change "Source" shortcode
- Adding Spellchecking to text fields
- table without primay key, sql generation
- Parametrized queries in management
- Export model - ERROR: CREATE DATABASE cannot run inside a transaction block
- pgModeler 1.2.0-alpha Syntax Highlighter XML error on start
- pgModeler 1.2.0-alpha table source missing dependencies HOT 1
- Removal of Included columns in index aren't removed
- [BUG]: 1.2.0 alpha, create function with `set` then save then edit to `table` then save, but the save is not working HOT 1
- pgModeler crashes on macOs after throwing exception on import
- pgmodeler compilation error for windows 10 (std_thread.h:330:26: error: no match for 'operator==' (operand types are 'std::thread::native_handle_type' and 'std::thread::native_handle_type'))
- [BUG] 1.2.0 alpha: diff not update, export not add new column HOT 4
- [BUG] 1.2.0-alpha: Markdown export issue when table has a comment HOT 1
- fatal error: ui_messagebox.h: No such file or directory on windows compilation HOT 3
- Make fails on Windows
- [BUG] Crash when creating a trigger to a many-to-many generated table HOT 2
- Constraint Trigger generates invalid SQL
- Installation / Resolving dependencies / Windows user
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgmodeler.