Skip to content
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

Help with transaltions #35

Open
RamonUnch opened this issue Mar 8, 2021 · 94 comments
Open

Help with transaltions #35

RamonUnch opened this issue Mar 8, 2021 · 94 comments
Labels
help wanted Extra attention is needed

Comments

@RamonUnch
Copy link
Owner

RamonUnch commented Mar 8, 2021

Dear users

AltSnap is fully translated. however I can only update English French and Italian.
All the other translations are partial, because I do not speak those languages at all.

So if you are familiar with a language and you are willing to help with the project, then I would be very thankful if you could spend some time to complete/improve a current language or even create a new one.

If you want to help with this, go to the Lang directory of AltSnap and edit the ini file you want to improve directly in this folder. look at _en_US baseline.txt that contains all the strings in English, that you can use as a reference for missing strings.

The format is very simple, it is a simple ini file with the [Translation] section. For example:
AdvancedFullScreen=Enable on &full screen windows

You can edit with Notepad or any other text editor that supports Unicode.

It must be encoded in UTF-16 LE but you can give me any other encoding, I will convert, so do not worry about it...
Do not forget to credit yourself in the "Author=" list

To try your translation, just select it in AltSnap. If it is already selected, select an other language and select it again to force AltSnapg to reload it. Double check that the text is not too long and fits inside the dialog.

Naming convention:
language_COUNTRY.ini
fr_FR.ini --> French from France;

  1. Keep in mind that if you want a carriage return in your string you can use '\n' sequence.
  2. You can set a shortcut key by prefixing a character with the '&' symbol. try to have no conflict with other shortcuts. for instance on the above example the shortcut to enable/disable the feature will be the ALT+F because of the '&full screen'.

Once you are happy with your improved translation, send it to me in some way: a new pull request, a new issue or even in this thread, this does not matter. Only your translation does.

I thanks here again TroudhuK for his help with the French translation.
Also thanks to yatli, 1kko and Ichisich for their very regular updates.

If you have any questions do not hesitate.
EDIT: Updated _en_US_baseline.txt (right click ->> Save link as...)

EDIT: Updated zip of all langs Lang.zip
EDIT: Dev builds of AltSnap:

AltSnap1.61bin_x64.zip
AltSnap1.61bin.zip

@RamonUnch RamonUnch added the help wanted Extra attention is needed label Mar 8, 2021
@bigcrush
Copy link

bigcrush commented Mar 9, 2021

I just updated russian translation to 1.39. But I could not find 'InputHotkeysMore' key in '_en_US baseline.txt'.
ru_RU.ini.zip

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 9, 2021

I just updated russian translation to 1.39. But I could not find 'InputHotkeysMore' key in '_en_US baseline.txt'.

Thanks very much. I will fix that.
Do you plan also on translating the advanced tab? Maybe this is a bit too much.

EDIT: Also I very slightly increased the size of the text box for the InputHotclicksMore so that your translations fits perfectly.

@yatli
Copy link

yatli commented Mar 10, 2021

@RamonUnch thank you for your efforts!
I can take care of zh-CN.

@yatli
Copy link

yatli commented Mar 10, 2021

#37

@RamonUnch RamonUnch pinned this issue Mar 10, 2021
@RamonUnch
Copy link
Owner Author

In the next release you will have a new action:
InputActionMenu=Action menu

And you should add an accelerator key to those actions that will be in the menu.

InputActionClose=&Close window
InputActionMinimize=Mi&nimize window
InputActionMaximize=Ma&ximize window
InputActionLower=&Lower window
InputActionAlwaysOnTop=Toggle always on &top
InputActionBorderless=Toggle &Borderless
InputActionCenter=C&enter window on screen
InputActionRoll=&Roll/Unroll window

If possible for the Close, Maximize, and Minimize actions, check the default of Windows in the sysmenu on the given language.

@yatli
Copy link

yatli commented Mar 12, 2021

FYI Windows 10 hides the accelerators by default. You'll have to press Alt then release to show them -- although still not very readable (see the underlines):

image

This is triggered by right clicking a title bar.
These accelerators also work on the taskbar -- however in the latest versions it's always hidden...

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 12, 2021

You can also hit Alt+Space on any window.

I like to enable the underlined letters even without pressing Alt, there is an option:
in Control Panel\All Control Panel Items\Ease of Access Center\Make the keyboard easier to use
X Underline keyboard shortcuts and access keys

I really have no idea why MS decided from Win200 that those accelerators would be hidden by default. Because of this I see plenty of people spending several seconds looking into long popups menu and they could save plenty of time if they new about the accelerators. I suggest anyone to give a try to this option.

EDIT: You can also use this reg:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Preference]
"On"="1"

@bigcrush
Copy link

bigcrush commented Mar 12, 2021

I try to add hotkeys to lang file, and ampersands does not disappear in menu. I try with some other langs - the same. Do I something wrong?
screenshot

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 12, 2021

This is normal, the next release will strip them out before display in this dialog. Here is a beta.
Those accelerators are for the new action that consists in a context menu that allows you to select any action in the list of my previous post.
Release for developers: EDIT Check first post

Action menu in action:
Action_menu
Note that you will not see the underlined letters unless you activate the previously mentioned option under Windows.
Pressing ESC or Alt kills the menu so do not bother with accelerators fro the "Nothing", this would only conflict potentially in the future with additional actions.

@bigcrush
Copy link

Now I see. But... :-)
screenshot

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 12, 2021

  1. This one 'Nothing' would have no accelerators as I said.
  2. To avoid having duplicates ie: InputHotkeysLeftAlt2 , I just modified AltDrag.exe to strip shortcuts here too, so that you no longer have to define InputHotkeysLeftAlt2 and so on. See again _en_US baseline in the first post.
    Also the '2' are removed from Ctrl and Shift.
    I put the dev AltDrag.zip in the First post.

I am sorry to make this a bit complicated but new features are always more work and for future translations it will be actually simpler.

@bigcrush
Copy link

Sorry, I missed links from the 1st post. Here is a translation for new string in ru_RU

InputActionMenu=Меню &действий

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 12, 2021

Perfect, I will update the ru_RU.ini with your modifications.
You did not miss anything, I just updated the first post again after your post.
For the Lower action I put 'Н' as a hotkey:
InputActionLower=&На задний план Is that good for you? you did not assign any in the blue image you posted.
EDIT: DONE

@RamonUnch
Copy link
Owner Author

@yatli I count on you for the translation of your ActionMenu verb as well as for the choice of the accelerators in the menu.
I updated the zh_CN.ini file when it comes to the suppression of key duplicates.

@yatli
Copy link

yatli commented Mar 12, 2021

Wilco.
Edit: #40

@yatli
Copy link

yatli commented Mar 12, 2021

For en_US baseline, I recommend:
InputActionClose=&Close window
It's a joy to use Alt+MMB then C to clean up a messy session.

@RamonUnch
Copy link
Owner Author

InputActionClose=&Close window

Fixed. It was correct in the languages.h but not the _en_US_baseline.txt

@RamonUnch
Copy link
Owner Author

I aslo made a small modification to AltDrag.exe so that the accelerators at the end of a string between parenthesis like you do in your translation are stripped in the drop lists.

@yatli
Copy link

yatli commented Mar 13, 2021

Noticed that. Was wondering why WIN32 is so smart :D

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 13, 2021

New Kill action.

InputAggressiveKill=&Kill process on Ctrl+Alt+F4\nAlso adds the kill option to the action menu
InputActionKill=&Kill program

Use with Caution, it uses the TerminateProcess function. See first post for beta build

@RamonUnch
Copy link
Owner Author

New test window:
AdvancedTestWindow=Test &Window

@bigcrush
Copy link

InputActionLower=&На задний план Is that good for you? you did not assign any in the blue image you posted.

Absolutely good. To be honest I use most of the programs in eng translation as it [english] takes less space on a screen. So my hotkeys are mostly english.

@bigcrush
Copy link

Translation of new strings.

InputAggressiveKill=&Убить процесс по Ctrl+Alt+F4\nТакже это действие можно поставить на кнопки
InputActionKill=&Убить процесс
AdvancedTestWindow=Тестовое &окно

@yatli
Copy link

yatli commented Mar 16, 2021

#41

@bigcrush
Copy link

While trying to translate Advance Tab, I realized that did not understand the meaning of some options. Could you take a little time to explain them?

What is "doubleclick aero snapping"?

AdvancedAeroDBClickShift=Invert shift &behavior for doubleclick aero snapping

What does it mean "left-click while moving"?

AdvancedMaxWithLClick=&Toggle maximize state with left-ckick while moving

@yatli
Copy link

yatli commented Mar 17, 2021

@bigcrush try Alt + RMB double click on a window, it snaps the window based on the mouse position relative to the window

@yatli
Copy link

yatli commented Mar 17, 2021

What does it mean "left-click while moving"?

I don't know.. LMB is already pressed while moving.
Clicking RMB during move indeed maximizes a window.

@bigcrush
Copy link

@yatli Thank you so much.

@RamonUnch

AdvancedMetricsBox=Метрики
AdvancedCenterFraction=Размер &центральной области (%):
AdvancedAeroHoffset=Aero (%) по &гориз.:
AdvancedAeroVoffset=&верт:
AdvancedSnapThreshold=Чувств. &стыковки (пиксели):
AdvancedAeroThreshold=Чувств. &Aero (пиксели):
AdvancedBehaviorBox=Разное
AdvancedMultipleInstances=Позволять несколько эк&земпляров AltDrag
AdvancedAutoRemaximize=Автоматом распахивать &окна при смене монитора
AdvancedNormRestore=Восстанавл. пристыкованные окна при &перемещении
AdvancedAeroTopMaximizes=Распахивать окна, &стыкованные к верху монитора
AdvancedAeroDBClickShift=shift-ом менять пове&дение для 2-х кликового Aero snap
AdvancedMaxWithLClick=&Распахивать окно правой кнопкой при перемещении
AdvancedRestoreOnClick=Восстанавл. окно одино&чным кликом(как ориг. AltDrag)
AdvancedFullScreen=Разрешить на по&лноэкранных окнах

(btw "Test Window" button has no a language string)

@Ichisich
Copy link

1.57
de_DE.zip

BTW:
The shortcut for action menu is too small to contain all entries at the same time.
The small step entries aren't visible without scrolling downward with the arrow key.
Problem is, that there is currently no indicator that this is even possible.

@RamonUnch
Copy link
Owner Author

I will add a scroll bar then.

@RamonUnch
Copy link
Owner Author

New dev builds of AltSnap:
AltSnap1.58bin_x64.zip
AltSnap1.58bin.zip

One new entry for the tray menu and an entry that should be modified.

MenuOpenIniFile=&Open ini file...
-AdvancedCenterFraction=&Center fraction (%):
+AdvancedCenterFraction=&Center/Sides fraction (%):

Quite minor update, hopefully I did not forget any strings.

@Ichisich
Copy link

1.58
de_DE.zip

@RamonUnch
Copy link
Owner Author

AltSnap1.59bin.zip
AltSnap1.59bin_x64.zip

latest beta release (hopefully it will be released soon)

diff:

InputActionNPStacked2=Next/Prev laser stacked window

InputActionExtendTNEdge=Extend to next edge
InputActionXTNLEdge=Extend to the next left edge
InputActionXTNTEdge=Extend to the next top edge
InputActionXTNREdge=Extend to the next right edge
InputActionXTNBEdge=Extend to the next bottom edge

InputActionMoveTNEdge=Move to next edge
InputActionMTNLEdge=Move to the next left edge
InputActionMTNTEdge=Move to the next top edge
InputActionMTNREdge=Move to the next right edge
InputActionMTNBEdge=Move to the next bottom edge

InputMouseWhileM=Whil&e moving
InputMouseWhileR=While resi&zing

MenuEmptyZone=  (empty)
MenuSnapLayout=Snap layout &

-InputHotclicksMore=Checked buttons will not be usable outside of AltSnap. They can be combined with an action.
+InputHotclicksMore=A checked button can be combined with an action but it will always be blocked in this case.

I hope I did not forget any verbs.

@Ichisich
Copy link

Ichisich commented Mar 9, 2023

MenuSnapLayout=Snap layout &
Doesn't seem to get recognized.

Regression:
GeneralInactiveScroll
Doesn't get translated anymore.

Missing entry;
AboutAuthor
Missing
AboutLicense

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 9, 2023

MenuSnapLayout=Snap layout & Doesn't seem to get recognized.

Regression: GeneralInactiveScroll Doesn't get translated anymore.

Missing entry; AboutAuthor Missing AboutLicense

You got a keen eye indeed. I fixed the GeneralInactiveScroll 0e509c1 and the MenuSnapLayout 9a94e94 problems.
I am unsure what the problem with the rest, you already translated the AboutAuthor and the AboutLicense text...

BIN
AltSnap1.59bin_x64.zip
AltSnap1.59bin.zip

@Ichisich
Copy link

Ichisich commented Mar 9, 2023

Screenshot 2023-03-09 200143

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 9, 2023

Indeed you are right I must make this part translatable, I will add AboutAuthor2 field!
EDIT fixed 08bd0f9

AltSnap1.59bin.zip
AltSnap1.59bin_x64.zip

@Ichisich
Copy link

Ichisich commented Mar 9, 2023

1.59
de_DE.zip

@1kko
Copy link
Contributor

1kko commented Mar 10, 2023

1.59
ko_KR.zip

@yatli
Copy link

yatli commented Mar 14, 2023

Been a while, lots of new features, thanks!

#389

Things I haven't get my head around of:
What is "long drag-free move/resize"? A long distance or a long time?

@RamonUnch
Copy link
Owner Author

Thanks a lot for your contribution again.

Things I haven't get my head around of:
What is "long drag-free move/resize"? A long distance or a long time?

It is all about timing, the selected action will be triggered on button release if you hold the move/resize action without dragging for more than a double click delay.
ie set Minimize as long drag-free move and Press Alt+Click, wait a little, then release click and the window will minimize.

@yatli
Copy link

yatli commented Mar 16, 2023

Got it. However I cannot activate this functionality (1.59, win11) -- nothing happens if I alt-click and hold, and release.

I do see the mouse pointer blink if I long click any title bar (but still, nothing happens).

#391

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 22, 2023

Only one new action for next release 1.60:

InputActionAltTabFullList=All windows list

The verb is already translated in zh_CN

1.60rc1 pre-release:
AltSnap1.60bin.zip
AltSnap1.60bin_x64.zip

@Ichisich
Copy link

1.60
de_DE.zip

@1kko
Copy link
Contributor

1kko commented Mar 23, 2023

@RamonUnch
I have 2 issues.

  1. Just trivial issue: _en_US basline.txt has 1.59 version in the header, should be 1.60.
  2. line 231 and 232 shares same key AboutAuthor is it intended?

@RamonUnch
Copy link
Owner Author

RamonUnch commented Mar 23, 2023

  • Just trivial issue: _en_US basline.txt has 1.59 version in the header, should be 1.60.

Thanks I will fix it.

  • line 231 and 232 shares same key AboutAuthor is it intended?

The second one Should be AboutAuthor2 Actually.

@1kko-ahnlabio
Copy link

ko_KR_1.60.zip
1.60 Update for Korean.
Thanks for maintaining! @RamonUnch

@RamonUnch
Copy link
Owner Author

Next release of AltSanp will just have two extra verbs:

MenuEditLayout=Edi&t snap layout

InputActionFocus=Focus window

AltSnap1.61bin_x64.zip
AltSnap1.61bin.zip

I will maybe make a couple more tweaks before 1.61 release but no extra features.

@Ichisich
Copy link

1.61
de_DE.zip

@1kko-ahnlabio
Copy link

1.61
ko_KR.zip

@RamonUnch
Copy link
Owner Author

Test build of AltSnap1.62 hopefully soon released:
AltSnap1.62bin.zip
AltSnap1.62bin_x64.zip

New:

InputActionFocusL=Focus left window
InputActionFocusT=Focus top window
InputActionFocusR=Focus right window
InputActionFocusB=Focus bottom window

Changed:

GeneralAutostartElevateTip=Note that a UAC prompt will appear every time you log in, unless you disable UAC completely or use the Task Scheduler.\nTo setup a Scheduled task for this purpose, you can use the sch_On.bat batch files in Altsnap's folder.

@Ichisich
Copy link

Ichisich commented Dec 2, 2023

1.62
de_DE.zip

@xeophyte
Copy link

1.62 PL
pl_PL.zip

@yatli
Copy link

yatli commented Mar 31, 2024

Long time no see, hope everyone's doing great.
#513

@1kko
Copy link
Contributor

1kko commented Apr 3, 2024

#515 updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

9 participants