-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some things... #46
Comments
I'll try thanks for reporting. |
What do i do with this error? "A translation team for your language (fr) does not exist yet" |
Mmm... This is an error, or you are thinking that no one want to translate the applet? When you create a translation support sure that some people want to translate the applet. If it's an error, first time that i see this. |
I don't think it is a error. it’s just I don't know how to submit for a translation. From: Lester Carballo Pérez Mmm... This is an error, or you are thinking that no one want to translate the applet? When you create a translation support sure that some people want to translate the applet. If it's an error, first time that i see this. — |
Using the translation mechanism allow you, that only are translate an applet if there are a translation file on your language... Otherwise the applet it's show on english... So, you don't need display this type of errors... |
1- To create a pot file:
2- Clean duplicate key:
The default way it's that you put your po file in the po folder(inside applet root dir). You have function to test locally the translation: cd "MyAppletFolder" I don't want to use the cinnamon mechanims i use my own mechanims to do all that. The conection mechanims:
When applet init you need to binding to the translation folder:
|
Ok thanks for adding it. |
Is everything covered in the latest release? |
Not really, the sticky mouse problem continues, less but happen... And man, you really need see what the other people do... My translation was only an example, not for release... you can change the es.mo to en.mo to see how translation works... Also you can create an en.po without translation or with the same translation. Or also used to not need any more change the default english key, just made the change in the en.po file. |
Another thing: What happend with this: This is the correct tooltips? |
@jake-phy i fully recomend you this applet, to not need open spices for see if there are a new comment... : https://github.com/collinss/Spices-Notifier |
thanks for that applet. This Language stuff is still confusing me. Do the translations need to be done manually by people? |
language have a key and value, you need to provide a key and people provide the value in the corresponding languages... |
If you have a bunch of mo files, the execInstallLanguage function really slows down the load time. it increased the load time on my applet by 1000ms. I was looking at the weather applet and it just uses po files is there some gain by using mo files? |
Yes, this is true. Cinnamon install your languages when applet was installed. This function copy the mo file to the corresponding place only, and this will be do by cinnamon if you move your .po file to ./po folder by you, but if you install the appler manually this not occurs of course. this is why i don't like the mechanims of cinnamon. see that i try to check a change in file to only copy the file when is needed, this is the comment line in this function, but i don't find a function to do that yet... If you find one? |
One solution could be commented the call to the function on the release and move the .po file to the po folder... For other case, you can use the function... |
There should be some way to compare dates modified to see if the file needs copied. -----Original Message----- Yes, this is true. Cinnamon install your languages when applet was installed. This function copy the mo file to the corresponding place only, and this will be do by cinnamon if you move your .po file to ./po folder by you, but if you install the appler manually this not occurs of course. this is why i don't like the mechanims of cinnamon. see that i try to check a change in file to only copy the file when is needed, this is the comment line in this function, but i don't find a function to do that yet... If you find one? |
I try to do that, but Gio file return null when i try to acces to this function or something similar... getFileSize: function(path) { https://bugs.launchpad.net/sbackup/+bug/1310957 You can try to play with query_filesystem_info there are several info that you can extract from files... |
That should do it. |
Hey exclent!!! Thanks!!! When i try do do a similar thing, i always get a problem.... I don't know why, but not matter, you can doed!!! |
I test this, and now i wait some days... Ocurrs that if you compare the tvtime in the same day it's also the same, so the file will do not replace, this is why i don't use this option... But if you wait a day the tvtime it's different... I don' t know if tvtime use minutes, hours or days to update the value. Do you know that? |
Could be poedit, some time this work well: https://developer.gnome.org/glib/unstable/glib-Date-and-Time-Functions.html#GTimeVal take care when it's the first time dest file not exist and you need to copy the file in this case without ask for tv_sec. |
Ahh good point thanks. |
The mouse it sticks on some content. Could you please add an option for change the position of the windows like cinnamon, and by default the drag and drop need to be disabled.
Could you please add language support? See:
https://github.com/linuxmint/Cinnamon/pull/2283/files#L1R25
linuxmint/cinnamon#2245
Thanks...
The text was updated successfully, but these errors were encountered: