<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multi language Add-On in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577181#M8909</link>
    <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You don't necessarily need a different installer for each language.&lt;/P&gt;
&lt;P&gt;You can use the function&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___add_on_identification.html#ga5a23a21321ec48a334c81c8e3e829504" target="_blank"&gt;ACAPI_AddOnIdentification_Application&lt;/A&gt; which returns the language as one of the response fields.&lt;/P&gt;
&lt;P&gt;And to change the menu text you can use:&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___menu_item.html#gac6affed4059ed41084369f741c52c033" target="_blank"&gt;ACAPI_MenuItem_SetMenuItemText&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 19:33:41 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2023-11-23T19:33:41Z</dc:date>
    <item>
      <title>Multi language Add-On</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577081#M8906</link>
      <description>&lt;P&gt;Actually my Addon only supports german. I'd like to recognize the language of ArchiCAD and to adjust the Addon-menu entries to that language.&lt;/P&gt;
&lt;P&gt;Is this possible or do I need different installers for each language?&lt;/P&gt;
&lt;P&gt;How do I recognize the language of ArchiCAD with the API?&lt;/P&gt;
&lt;P&gt;How can I change the menu text during runtime with the API?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:17:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577081#M8906</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2024-09-17T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multi language Add-On</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577181#M8909</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You don't necessarily need a different installer for each language.&lt;/P&gt;
&lt;P&gt;You can use the function&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___add_on_identification.html#ga5a23a21321ec48a334c81c8e3e829504" target="_blank"&gt;ACAPI_AddOnIdentification_Application&lt;/A&gt; which returns the language as one of the response fields.&lt;/P&gt;
&lt;P&gt;And to change the menu text you can use:&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___menu_item.html#gac6affed4059ed41084369f741c52c033" target="_blank"&gt;ACAPI_MenuItem_SetMenuItemText&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 19:33:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577181#M8909</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-23T19:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multi language Add-On</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577490#M8920</link>
      <description>&lt;P&gt;You can get the language from&amp;nbsp;CheckEnvironment() like this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GS::UniString ArchicadLanguage;
API_AddonType __ACDLL_CALL CheckEnvironment(API_EnvirParams* envir)
{
	RSGetIndString(&amp;amp;envir-&amp;gt;addOnInfo.name, ID_ADDON_INFO, 1, ACAPI_GetOwnResModule());
	RSGetIndString(&amp;amp;envir-&amp;gt;addOnInfo.description, ID_ADDON_INFO, 2, ACAPI_GetOwnResModule());

	ArchicadLanguage = envir-&amp;gt;serverInfo.language;

	return APIAddon_Preload;
}&lt;/LI-CODE&gt;&lt;P&gt;Then you can have separate resource files for each language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 10:35:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/577490#M8920</guid>
      <dc:creator>kolioi</dc:creator>
      <dc:date>2023-11-26T10:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multi language Add-On</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/580749#M9008</link>
      <description>&lt;P&gt;Thanks a lot, that works fine!&lt;/P&gt;
&lt;P&gt;One thing is missing now:&lt;/P&gt;
&lt;P&gt;When I register a menu via&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ACAPI_MenuItem_RegisterMenu(ID_MENU_STRINGS_CREATE, ID_STATUS_STRINGS_CREATE, MenuCode_UserDef, MenuFlag_Default);&lt;/LI-CODE&gt;
&lt;P&gt;I like to change the text of the status string too:&amp;nbsp;ID_STATUS_STRINGS_CREATE&lt;/P&gt;
&lt;P&gt;It seems that this does not work with the&amp;nbsp;ACAPI_MenuItem_SetMenuItemText command.&lt;/P&gt;
&lt;P&gt;How can I change the&amp;nbsp;text of status strings?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 10:36:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/580749#M9008</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2023-12-18T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multi language Add-On</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/580831#M9009</link>
      <description>&lt;P&gt;I couldn't find a command to do this either. It might actually not be possible to change the status string after registering the menu item.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 16:56:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Multi-language-Add-On/m-p/580831#M9009</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-12-18T16:56:26Z</dc:date>
    </item>
  </channel>
</rss>

