Author Topic: Is it logical to translate an URL address?  (Read 9094 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7664
    • My Best Post
Is it logical to translate an URL address?
« on: October 21, 2019, 03:16:28 am »
From "src\plugins\contrib\CppCheck\ConfigPanel.cpp"

Code
    hycCppCheckWWW = new wxHyperlinkCtrl(this, ID_HYC_CPP_CHECK_WWW, _("http://cppcheck.sourceforge.net"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_CONTEXTMENU|wxHL_ALIGN_CENTRE|wxNO_BORDER, _T("ID_HYC_CPP_CHECK_WWW"));
Code
    hycVeraWWW = new wxHyperlinkCtrl(this, ID_HYC_VERA_WWW, _("https://bitbucket.org/verateam/vera"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_CONTEXTMENU|wxHL_ALIGN_CENTRE|wxNO_BORDER, _T("ID_HYC_VERA_WWW"));

Is it logical to translate an URL address?

From https://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html
Quote
the _() macro is defined to do the same thing as wxGetTranslation()

Tim S.

« Last Edit: October 21, 2019, 03:46:52 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is it logical to translate an URL address?
« Reply #1 on: October 21, 2019, 09:19:05 am »
Nope.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]