Preservation of the spelling language (a wish)

Asked by SciYY

I use the spell check option in my diary and the program remembers that, but unfortunately it does not remember the language for the check. The language of my system is English, but I keep my notes in Russian. So every time after logon to the diary I have to change the language from English to Russian. It is a little bit annoying. I think the preserving of this parameter would be very pleasant for foreign users.

Thank you in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Lifeograph Edit question
Assignee:
No assignee Edit question
Solved by:
Ahmet Öztürk
Solved:
Last query:
Last reply:
Revision history for this message
Ahmet Öztürk (dmxe) said :
#1

Seems like a valid request. I have converted this into a bug report. In the mean time you may try starting Lifeograph with setting LC_ALL to russian. You may want to edit your Lifeograph shourcut to something like:

env LANG=ru_RU.UTF-8 lifeograph

Revision history for this message
SciYY (yyakhno) said :
#2

Thank you for reply, but it seems that this workaround is not work properly.

Indeed, when start lifeograph with this command, program starts with spell check for Russian. But unfortunately this command makes a serious error on diary saving. So, program logouts normally, but the next time it prompts a password two times, then tells that diary is in old format and should be converted.

When I looked into my diary file, its content was very surprising:

LIFEOGRAPHDB
V 74
E yes

These 3 lines + blank line. That's ALL.

So it seems that some additional changes are needed.

Revision history for this message
SciYY (yyakhno) said :
#3

If it will help, this is messages from my console window:

sciyy@YY-S-HOME:~$ env LANG=ru_RU.UTF-8 lifeograph

(process:3394): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

(lifeograph:3394): glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code : 1
what : Invalid byte sequence in conversion input

(lifeograph:3394): glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code : 1
what : Invalid byte sequence in conversion input

sciyy@YY-S-HOME:~$

Revision history for this message
Best Ahmet Öztürk (dmxe) said :
#4

Russian locale does not seem to be installed properly on your system, hence fallback C locale is used. Please install Russian locale. In ubuntu it is done in System Settings > Language Support > Install Remove Languages.

In the meantime I will investigate the problem with C locale.

Revision history for this message
Ahmet Öztürk (dmxe) said :
#5

I believe that C locale problem is fixed now in trunk with rev. 1188.

Revision history for this message
SciYY (yyakhno) said :
#6

Thanks Ahmet Öztürk, that solved my question.

Revision history for this message
SciYY (yyakhno) said :
#7

I installed full Russian locale and now I have no problems with with this workaround and got no messages at the console. Thank you.

Revision history for this message
Hachmann (marenhachmann) said :
#8

I just experienced the same issue - my whole diary file got wiped, most probably due to locale changes while trying to fix settings kdeplasma messed up. (de_DE to de_DE.UTF-8) - thanks for the 'previous' file. It really saved me (only the changes that I made today while working in the de_DE locale were lost.)

The only user-facing result that this gives is that it says that the password is wrong...

Lifeograph also doesn't work properly (i.e. hitting Enter or double-clicking to open a diary file does exactly nothing, buttons open password prompt) when locale doesn't match the one when the diary has been created. Or perhaps when it's not UTF-8, can't tell...

Tested again, this time it just crashes when not launched with full UTF-8 (LANG is de_DE, rest is de_DE.UTF-8, still trying to figure out where that setting comes from, and how to fix...) and a password is entered.

(lifeograph:15218): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: input string not valid UTF-8