Add "Notepad++ User Defined Languages Collection" project website access command

This commit is contained in:
Don Ho 2021-11-23 00:31:37 +01:00
parent 21dd62bb0d
commit add9f64104
4 changed files with 11 additions and 1 deletions

View File

@ -3,7 +3,7 @@
The comments are here for explanation, it's not necessary to translate them.
-->
<NotepadPlus>
<Native-Langue name="English" filename="english.xml" version="8.1.5">
<Native-Langue name="English" filename="english.xml" version="8.1.9.2">
<Menu>
<Main>
<!-- Main Menu Entries -->
@ -319,6 +319,7 @@ The comments are here for explanation, it's not necessary to translate them.
<Item id="46001" name="Style Configurator..."/>
<Item id="46250" name="Define your language..."/>
<Item id="46300" name="Open User Defined Language folder..."/>
<Item id="46301" name="Notepad++ User Defined Languages Collection"/>
<Item id="46180" name="User-Defined"/>
<Item id="47000" name="About Notepad++"/>
<Item id="47010" name="Command Line Arguments..."/>

View File

@ -962,6 +962,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "Define your language...", IDM_LANG_USER_DLG
MENUITEM "Open User Defined Language folder...", IDM_LANG_OPENUDLDIR
MENUITEM "Notepad++ User Defined Languages Collection", IDM_LANG_UDLCOLLECTION_PROJECT_SITE
MENUITEM "User-Defined", IDM_LANG_USER
END
@ -1110,6 +1111,7 @@ BEGIN
BEGIN
MENUITEM "Define your language...", IDM_LANG_USER_DLG
MENUITEM "Open User Defined Language folder...", IDM_LANG_OPENUDLDIR
MENUITEM "Notepad++ User Defined Languages Collection", IDM_LANG_UDLCOLLECTION_PROJECT_SITE
END
MENUITEM "User-Defined", IDM_LANG_USER
END

View File

@ -3410,6 +3410,12 @@ void Notepad_plus::command(int id)
break;
}
case IDM_LANG_UDLCOLLECTION_PROJECT_SITE:
{
::ShellExecute(NULL, TEXT("open"), TEXT("https://github.com/notepad-plus-plus/userDefinedLanguages"), NULL, NULL, SW_SHOWNORMAL);
break;
}
case IDC_PREV_DOC :
case IDC_NEXT_DOC :
{

View File

@ -529,6 +529,7 @@
#define IDM_LANG_USER_LIMIT (IDM_LANG + 210) //46210: Ajust with IDM_LANG_USER
#define IDM_LANG_USER_DLG (IDM_LANG + 250) //46250: Used for translation
#define IDM_LANG_OPENUDLDIR (IDM_LANG + 300)
#define IDM_LANG_UDLCOLLECTION_PROJECT_SITE (IDM_LANG + 301)