futpib / policeman

Firefox extention for cross-site requests control (kind of RequestPolicy clone)
https://addons.mozilla.org/en-US/firefox/addon/policeman/
142 stars 11 forks source link

Localization (accepting commit-requests from git-newbies) #101

Open Wassss opened 9 years ago

Wassss commented 9 years ago

I tried translation to french but failed , a lot of UI problem : 1 2 3 4 5 6 7-popup

I translated/edited this files : "chrome.manifest" "chrome\locale\fr-FR\policeman.dtd" "chrome\locale\fr-FR\policeman.properties" "defaults\rulesets\allow_any.ruleset" "defaults\rulesets\allow_from_file_to_file_and_web.ruleset" "defaults\rulesets\allow_same_second_level_domain.ruleset" "defaults\rulesets\allow_same_site.ruleset" "defaults\rulesets\compatibility.ruleset" "defaults\rulesets\default.ruleset" "defaults\rulesets\i2p_sandbox.ruleset" "defaults\rulesets\onion_sandbox.ruleset" "defaults\rulesets\reject_any.ruleset" to donwload all files : https://www.mediafire.com/?50bjbc35vaosj65

is there any other files which must be translated ?

futpib commented 9 years ago

@Wassss It is enough to translate policeman.properties and maybe defaults/rulesets/*. policeman.dtd is generated from policeman.properties by build.sh, build.sh also fixes missing strings. Those unreasonably long error strings stand for missing keys in policeman.properties

futpib commented 9 years ago

@Wassss Oh, your policeman.properties looks complete. The problem is that it is not in UTF-8.

Halibut80 commented 9 years ago

@futpib, excuse me, a few days I trying to understand how to deal with git, and how to make a pull-request, but... About programming I only know that it exists... So, here [ru] locale. Sorry... (-_-¨) (I checked the translation with repacked xpi - everything works well)

futpib commented 9 years ago

@Halibut80 No problem 01f055a4ef009ed2bf36cad6aa8ad4d1b58775e4

futpib commented 9 years ago

@Wassss Would you like me to commit your translation too?

futpib commented 9 years ago

@heforfree 6ad837d87b85d293eb1c95c95ea3149c8ff7a03a

Halibut80 commented 9 years ago

@futpib rulesets.zip for ru-RU locale. Sorry again.

Wassss commented 9 years ago

@futpib yes of course thx

futpib commented 9 years ago

@heforfree When there is already a rule exactly like one you are about to import (same origin and destination domains and same content type) there are a few options:

I am no English native speaker, so suggestions on better naming are welcome.

bastik-1001 commented 9 years ago

@futpib I'm not a native speaker, either. I understood your usage of words and translated them accordingly.

At times it is still the case that translations need updates, because on how they are used in the interface. Like if it is an action or a noun, etc.

Halibut80 commented 9 years ago

@futpib ru-RU policeman.properties for 0.17

Also, default rulesets not translated for me: <img src="http://lh3.ggpht.com/-U-OKtJa9U-Y/VKbVapiWS-I/AAAAAAAAaWI/PmAf_kN8ftY/s0/thumb.jpg"

Wassss commented 9 years ago

@futpib fr-FR policeman.properties update for 0.17 with the french version there is a problem with : popup_arrow = → & popup_arrow_with_stroke = ↛

the two symbol are replaced by "?" symbol

Wassss commented 9 years ago

@futpib fr-FR policeman.properties update for 0.18pre2

Halibut80 commented 9 years ago

ru-RU policeman.properties and https_half_open_sandbox.ruleset for 0.18pre3

Wassss commented 9 years ago

@futpib rulesets-update_FR + https for 0.18pre3

Wassss commented 9 years ago

sorry i closed the discussion per mistake

Wassss commented 9 years ago

@futpib fr-FR policeman.properties update for 0.18pre4

heforfree commented 9 years ago

all this string updated. popup_children_hidden_marker popup_allow_rule popup_reject_rule popup_arrow popup_arrow_with_stroke

Halibut80 commented 9 years ago

ru-RU policeman.properties for 0.18pre7

Halibut80 commented 9 years ago

@futpib, also, I wanted to know: what is the difference between content_type.title.plural.OTHER = Uncategorized and popup_filter_other = Other? What type of requests related to each of these categories?

Wassss commented 9 years ago

@futpib fr-FR policeman.properties update for 0.18pre7

futpib commented 9 years ago

@Halibut80 In short, content_type.title.plural.OTHER is a real content type (you can have a rule based on it), while popup_filter_other is just a name for a button. content_type.title.plural.OTHER is a content type name for requests that do not fall into any other specific category (image, style and so on), popup_filter_other is a name for filter button in popup for requests that do not fall into another category among selected in preferences for popup.

For instance when user has all categories checked in preferences, popup_filter_other button will certainly have 0 requests under it, since all the requests certainly fell into some other category.

Another example:

outcome:

Halibut80 commented 9 years ago

@futpib, thanks for the explanation. Small update (line 10&24) policeman.properties

Halibut80 commented 9 years ago

ru-RU policeman.properties for 0.18pre10

@futpib Can you add, please, preferences_userrulesetsimport_file_dialog

Wassss commented 9 years ago

@futpib fr-FR policeman.properties for 0.18pre10

futpib commented 9 years ago

@Halibut80 bab5f215f6b844dfccbddc369133128719ba27ff

Halibut80 commented 9 years ago

@futpib, thanks! ru-RU policeman.properties

heforfree commented 9 years ago

@futpib updated for new string fa_ir.also i deleted my all older comment that Useless policeman_fa_ir_2 zip

Wassss commented 9 years ago

@futpib fr-FR update policeman.properties for 0.18

Halibut80 commented 9 years ago

ru-Ru policeman.properties for 0.19pre0

heforfree commented 9 years ago

policeman_fa_ir zip 0.19pre0 fa-ir

Wassss commented 9 years ago

@futpib FR-update-for-0.19pre0-policeman.properties

GreenJunkie commented 9 years ago

@futpib Hi,futpib Based on the Localization guide, I've tried the translation into Japanese. Because did not test, it may not work. Shown below ・chrome\locale\ja-JP\policeman.properties ・defaults\rulesets\each file

src

Halibut80 commented 9 years ago

ru-RU policeman.properties for 0.19pre1

futpib commented 9 years ago

Note that I renamed the redirect_notification_popup_message string to redirect_notification_popup_message_from_to (a347ac022723516e3ba5f3849216d32e2f6cedab) since from 50be3dd4713e8141f389dfceceb242a02327dd4b on it takes two arguments and the old one is not appropriate.

heforfree commented 9 years ago

@futpib updated fa_ir policeman_fa zip

Halibut80 commented 9 years ago

ru-RU policeman.properties

Wassss commented 9 years ago

@futpib fr-FR policeman.properties

dxdragon commented 8 years ago

Hello, @futpib I really appreciate this addon, and I attempt to translate into simplified chinese, here is a downlink for all the translated files: Translation_zh-CN.zip @futpib sorry that I missed some locale files, now I have re-uploaded a new zip file. preview: popup

yfdyh000 commented 8 years ago

@dxdragon the policeman.properties file seems to missing.

heforfree commented 7 years ago

guys go and fill survey"survey regarding it's future" If you like Policeman, please consider participating in a survey regarding it's future.

https://outgoing.prod.mozaws.net/v1/acdee26bcc62f0b5616c9c4121f6fb9e2765f62a8ac1e6343a48b8bde91f844d/https%3A//goo.gl/forms/g6ldXl18sUz3eIwW2 according here https://addons.mozilla.org/en-US/firefox/addon/policeman/