maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Anyway to remove the text "Swipe to unlock" from the lock screen? (https://talk.maemo.org/showthread.php?t=69249)

xxxxts 2011-02-02 11:20

Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Is there anyway to remove the text "Swipe to unlock" form the lock screen?

admiral0 2011-02-02 11:29

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by xxxxts (Post 934070)
Is there anyway to remove the text "Swipe to unlock" form the lock screen?

bump < interested too

pelago 2011-02-02 16:11

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
According to http://talk.maemo.org/showthread.php?t=63649 the unlock screen is implemented in a closed-source component, unfortunately.

D4rKlar 2011-02-02 16:12

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
YES. By incorporating a white bit of background behind it,

Kind Regards,
D4rK

Switch_ 2011-02-02 16:19

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Lateral thinking there D, like it mate.

jstokes 2011-02-02 16:29

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by pelago (Post 934316)
According to http://talk.maemo.org/showthread.php?t=63649 the unlock screen is implemented in a closed-source component, unfortunately.

It, however, reads its strings from an external file for localisation reasons.
Check /usr/share/locale/$LANG/LC_MESSAGES for something like osso-systemui-tklock.mo. (I can't remember the file name exactly, so grep -i for whatever the string "Swipe to unlock" is in your language. Edit: Check pelago's post below)

Once found, either install "gettext" on the N900 (available in the SDK repository; be careful!) or copy the mo file to a Linux computer (or a Windows one, if you can find Windows binaries of gettext).

After that, you can invoke "msgunfmt mofile.mo -o mofile.po" and find the string in the resulting po file. Once found, replace it with a space character and, then, once saved, run "msgfmt pofile.po -o mofile.mo" and copy the final result back to the LC_MESSAGES folder

pelago 2011-02-02 16:48

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
What an excellent post. It looks like the correct file in that folder is osso-system-lock.mo, and the string ID is secu_swipe_to_unlock, by the way.

Of course, any changes to this file would get lost if a future update overwrote it. I'm not sure what would be the best way to make this change persistent...

nicolai 2011-02-02 17:02

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Good catch!
Maybe a good way to print a custom text on the lock device screen
as well.
For example replace the text for the secu_application_title
with
"please call xxxx if you found this phone".

Nicolai

xxxxts 2011-02-03 10:53

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
Quote:

Originally Posted by jstokes (Post 934339)
It, however, reads its strings from an external file for localisation reasons.
Check /usr/share/locale/$LANG/LC_MESSAGES for something like osso-systemui-tklock.mo. (I can't remember the file name exactly, so grep -i for whatever the string "Swipe to unlock" is in your language. Edit: Check pelago's post below)

Once found, either install "gettext" on the N900 (available in the SDK repository; be careful!) or copy the mo file to a Linux computer (or a Windows one, if you can find Windows binaries of gettext).

After that, you can invoke "msgunfmt mofile.mo -o mofile.po" and find the string in the resulting po file. Once found, replace it with a space character and, then, once saved, run "msgfmt pofile.po -o mofile.mo" and copy the final result back to the LC_MESSAGES folder

I got lost in that message, could you do that one more time just a little slower?:o

michaaa62 2011-02-03 11:29

Re: Anyway to remove the text "Swipe to unlock" from the lock screen?
 
You have to change the file /usr/share/locale/us_US/LC_MESSAGES/osso-system-lock.mo, this is only possible, if you convert the file .mo to .po via the msgunfmt command.
You could edit the now. Format the file back to .mo with the msgfmt command.

Note: You need gettext installed to have the msg* commands on you N900 available.


All times are GMT. The time now is 12:00.

vBulletin® Version 3.8.8