久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <small id='nCdC5'></small><noframes id='nCdC5'>

      <tfoot id='nCdC5'></tfoot>
        <bdo id='nCdC5'></bdo><ul id='nCdC5'></ul>
    2. <i id='nCdC5'><tr id='nCdC5'><dt id='nCdC5'><q id='nCdC5'><span id='nCdC5'><b id='nCdC5'><form id='nCdC5'><ins id='nCdC5'></ins><ul id='nCdC5'></ul><sub id='nCdC5'></sub></form><legend id='nCdC5'></legend><bdo id='nCdC5'><pre id='nCdC5'><center id='nCdC5'></center></pre></bdo></b><th id='nCdC5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='nCdC5'><tfoot id='nCdC5'></tfoot><dl id='nCdC5'><fieldset id='nCdC5'></fieldset></dl></div>

      1. <legend id='nCdC5'><style id='nCdC5'><dir id='nCdC5'><q id='nCdC5'></q></dir></style></legend>

        WinForms 中是否有本地化常用文本的存儲庫?

        Is there a repository for localized common text in WinForms?(WinForms 中是否有本地化常用文本的存儲庫?)
        • <bdo id='pqUJp'></bdo><ul id='pqUJp'></ul>
          <legend id='pqUJp'><style id='pqUJp'><dir id='pqUJp'><q id='pqUJp'></q></dir></style></legend>
        • <tfoot id='pqUJp'></tfoot>

                <i id='pqUJp'><tr id='pqUJp'><dt id='pqUJp'><q id='pqUJp'><span id='pqUJp'><b id='pqUJp'><form id='pqUJp'><ins id='pqUJp'></ins><ul id='pqUJp'></ul><sub id='pqUJp'></sub></form><legend id='pqUJp'></legend><bdo id='pqUJp'><pre id='pqUJp'><center id='pqUJp'></center></pre></bdo></b><th id='pqUJp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pqUJp'><tfoot id='pqUJp'></tfoot><dl id='pqUJp'><fieldset id='pqUJp'></fieldset></dl></div>
                  <tbody id='pqUJp'></tbody>

                <small id='pqUJp'></small><noframes id='pqUJp'>

                  本文介紹了WinForms 中是否有本地化常用文本的存儲庫?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在全球化一個 Windows 表單應用程序.

                  I'm globalizing a Windows form application.

                  有沒有辦法以 Windows 的當前語言訪問常用文本?

                  Is there a way to access common text in the current language for Windows?

                  例如對于OK、Cancel和Accept按鈕的標簽;如果我正在構建一個帶有 OK 按鈕的表單,我想使用 Windows 在其他地方為 OK 按鈕使用的相同翻譯.

                  For example, for the labels of OK, Cancel and Accept buttons; if I'm building a form that has an OK button I would like to use the same translation that Windows uses everywhere else for OK buttons.

                  我知道我可以自己存儲翻譯,但 Windows 必須將它們存儲在某個地方,它們是否允許開發人員訪問它們?

                  I know I can store the translation for them myself, but Windows has to have them stored somewhere, do they give developers access to them?

                  推薦答案

                  是的,理論上你可以從 Windows 的內部系統文件中提取本地化字符串.但不要這樣做.可能的缺點遠遠超過了優點.您的應用程序不應依賴于未記錄的實現細節.沒有理由嘗試從 Windows 獲取它.

                  Yes, theoretically you could extract localized strings from Windows's internal system files. But don't do it. The advantages are far outweighed by the possible disadvantages. Your application shouldn't be reliant on undocumented implementation details. There's no reason to try and get this from Windows.

                  還值得指出的是,您可以重命名按鈕(以及所有其他控件).這意味著如果您依賴某種字符串匹配算法,那么很容易破壞某些東西.沒有辦法將按鈕標記為某種類型",以便它自動與特定標題關聯,即使您可以,這也不會涵蓋非-瑣碎的用戶界面.此外,正如 Joey 的回答所指出的,對于用戶而言,沒有什么比 部分 本地化的 UI 更糟糕的了.一致性是關鍵,您無法通過這種方式本地化標簽、分組框、菜單、工具提示等.

                  It's also worth pointing out that you can rename buttons (and every other control). That means it's too easy to break something if you're relying on some kind of string matching algorithm. There's no way to mark a button as being a certain "type" so that it will be automatically associated with a particular caption, and even if you could, this wouldn't cover every button present in a non-trivial UI. Also, as Joey's answer points out, there's nothing worse for the user than a partially localized UI. Consistency is the key, and you can't localize labels, group boxes, menus, tooltips, etc. this way.

                  但請注意,Windows會自動本地化消息框上按鈕的標題(MessageBox).您不必抬起一根手指.

                  Note, however, that Windows will automatically localize the captions for buttons on a message box (MessageBox). You don't have to lift a finger.

                  將表單的 Localizable 屬性設置為 True(您必須在設計時這樣做)并為應用程序中的所有控件提供本地化文本有什么問題?Windows 窗體實際上對本地化提供了相當全面的支持;設計器會自動將所有可本地化的元素序列化到表單的 RESX 文件中.請參閱 MSDN:演練:本地化 Windows 窗體.確保留出足夠的空間以允許不同語言中不同長度的表達式.

                  What's wrong with setting the form's Localizable property to True (you must do this at design time) and providing localized text for all of the controls in your application? Windows Forms actually has pretty comprehensive support for localization; the designer will automatically serialize all localizable elements to the form's RESX file. See MSDN: Walkthrough: Localizing Windows Forms. Make sure that you leave a sufficient amount of space to allow for the varying lengths of expressions in different languages.

                  這篇關于WinForms 中是否有本地化常用文本的存儲庫?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  extracting just page text using HTMLAgilityPack(使用 HTMLAgilityPack 僅提取頁面文本)
                  C# extracting data from XML(C# 從 XML 中提取數據)
                  Read a XML (from a string) and get some fields - Problems reading XML(讀取 XML(從字符串)并獲取一些字段 - 讀取 XML 時出現問題)
                  Reading large XML documents in .net(在 .net 中讀取大型 XML 文檔)
                  How to create folder in Google Drive using .NET API?(如何使用 .NET API 在 Google Drive 中創建文件夾?)
                  <tfoot id='VH78z'></tfoot>
                    <bdo id='VH78z'></bdo><ul id='VH78z'></ul>
                        <tbody id='VH78z'></tbody>
                          • <legend id='VH78z'><style id='VH78z'><dir id='VH78z'><q id='VH78z'></q></dir></style></legend>

                            <small id='VH78z'></small><noframes id='VH78z'>

                          • <i id='VH78z'><tr id='VH78z'><dt id='VH78z'><q id='VH78z'><span id='VH78z'><b id='VH78z'><form id='VH78z'><ins id='VH78z'></ins><ul id='VH78z'></ul><sub id='VH78z'></sub></form><legend id='VH78z'></legend><bdo id='VH78z'><pre id='VH78z'><center id='VH78z'></center></pre></bdo></b><th id='VH78z'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VH78z'><tfoot id='VH78z'></tfoot><dl id='VH78z'><fieldset id='VH78z'></fieldset></dl></div>

                            主站蜘蛛池模板: 欧产日产国产精品国产 | 成人精品福利 | 精品一区二区久久 | 国内自拍偷拍视频 | 久久一区二区av | 成人h动漫精品一区二区器材 | 中文字幕av一区 | 欧美日韩亚洲一区二区 | 成人在线视频免费观看 | 成人日韩精品 | 伊人狠狠| 亚洲黄色av| 成人视屏在线观看 | 日韩毛片视频 | www四虎影视 | 成年免费大片黄在线观看一级 | 久久久久国产精品一区 | 国产性网 | 日韩欧美综合 | 国产精品视频综合 | h在线| 亚洲综合成人网 | 亚洲精品视频免费 | 国产精品大片在线观看 | 久草在线高清 | 亚洲欧美精品 | 成人黄色三级毛片 | 日韩一级电影免费观看 | 激情一区二区三区 | 91九色porny首页最多播放 | 国产999精品久久久久久 | 草久久久| 久久午夜视频 | 中文字幕av网 | 日日夜夜精品视频 | 日韩精品一区二区三区四区 | 精品国产欧美一区二区三区成人 | 亚洲国产成人精品女人久久久 | 国产成人网 | 日日夜夜精品视频 | 亚洲欧美一区二区三区在线 |