|
吾爱游客
发表于 2020-6-27 01:04
1.申请ID:余与鱼
2.个人邮箱:2608591639@qq.com
3.原创技术文章:汉化Adobe XD插件,本人为设计专业的大三学生,学的是视觉传达,最经常接触的就是Adobe软件。ps ai ,我们不聊。今天聊一下汉化XD插件。因为XD插件对我们天朝封锁,只能通过某墙技术去获取。所以我会在文章末尾附上我已经汉化好的插件。同时因为本人经历与精力有限又非计算机专业汉化的不好勿喷。
首先我先介绍一下XD插件(一步步来),目前市面上的XD插件大多由Adobe直接用二进制编译为XDX格式,
而我是一个比较LOW的人,我不懂怎么编译二进制文件,所以我直接在plugins文件夹中寻找已经安装好的插件文件夹。但是因为Adobe XD是UWP类型软件,他的文件夹被系统隐藏,所以在试了几次后放弃晚上说说的去找,而是采取更简单粗暴的方法。
接下来我找到安装好的插件文件包,就可以直接开始编译,我分析了一下插件的结构基本由images文件夹,lib文件夹,还有一堆JS和JION文件组成
上主角,汉化,首先打开JION文件
我上我汉化好的图片,其中"id": "570d8b62。",
/*代表的是这个插件独一无二的识别码,如果你的XD登录的是外国账号,那么就完全不一样了,那样会直接走JION识别ID传回服务器,识别成功传回本机数据接下来直接读取JS,跳过剩下的JION内容,这样你汉化的名字就会失效,而最简单的解决
办法就是在ID上加一位数字或者符号这边推荐。./*-等最简单的。因为罕见符号的会XD无法识别无发读取ID而造成XD中无法显示插件。*/
剩下的"name": "Icondrop(图标库)[刘余汉化]",
"version": "2.2.1",
"description": "Iconscout是一个设计资源市场,拥有来自全球700多个贡献者的200万多个设计资源。一键搜索并插入矢量图标,插图和照片。\n\n下载和使用此插件受 Iconscout 的使用条款和隐私政策的约束. Go to https://iconscout.com/legal/terms-of-use for more info.",
"summary": "下载图标和图片",
"releaseNotes": "现在,将iconsout插件(Icondrop)与Adobe XD面板更新无缝地结合使用。",
对应的就是插件名字,简介,关键字标识,这边的有要点是,""符号必须为因为,JS本身编码与JAVA类似,必须在结束段,加上英文,在分隔段加上英文;
因为这个插件没有面板上分离小功能,所以JION的汉化到此处先告一段落,我们打开文件夹中一个叫main.common的JS文件(有的插件为main.js),这才是主菜,首先ctrl+f,打开搜索框,搜索你要汉化的内容比如我要汉化一个Home,那么我就定位
home的位置
比如我这里的home在文件夹中拥有11个(真正的基本关键词定位少几十多几百),那么我们怎么去找到我们想汉化的那一个,教大家几个方法
"home":{"search_ph":"输入英文单词搜索[刘余汉化]",
JS的特性,非可执行代码一半用'' "" ><等符号囊括,但是也不一定,
"downloads":"downloads","likes":"likes","selected":"selected","prototype":"prototype",
比如我们要汉化的这段代码,如果你按照这个规律全部汉化那么XD插件显示的就是一堆乱码,因为:前属于锚点ID一个是像一个按钮一样,将这个:后的文字与@key相连接,就是一个按钮,壳让你知道怎么用:后就是,壳后面连的线就是:前的,所
以看到:汉化后不动前。当然比如这段我汉化好的
"header":{"iconscout":"图标","search":"主页","downloads":"我的下载","likes":"我喜欢的","selected":"关注的设计师","prototype":"原生态","myscout":"我的队伍"},"filters":{"price":"付费","sort":"排序","
styles":{"全部":"所有样式"},"product_type":"搜索项/包","color":"颜色","orientation":"方向","people":"人","ethinicity":"电子","age":"年龄","gender":"性别","n_filters":"已应用过滤器 |应用筛选器",
"pricing":{"all":"任何","free":"免费","premium":"额外费用 "},"sorting":{"latest":"最新","popular":"流行","relevant":"应用"}},"items":{"buy":"以$ {量}的价格购买","pack":{"search_ph":"打包搜索"},
"all":"全部","name":"项目|物品","type":{"pack":"包装包数","individual":"个人|个人"},"icon":{"name":"图标|图示","pack":"图标包|图标包","options":{"like":"喜欢","view":"查看包","web":"在浏览器中打开",
"more":"更多信息","dislike":"不喜欢"}},"image":{"name":"图片|图片","pack":"图片包|图片包"},"photo":{"name":"照片|相片","pack":"照片包|相片包"},"illustration":{"name":"插图|插图","pack":"插图包|插图包"}},
"buttons":{"login":"登录","signup":"注册","logout":"注销","forgot_password":"忘记密码?","login_insert":"Login to Insert","confirm_purchase":"Confirm Purchase to Insert","purchase":"Confirm Purchase",
"subscribe_pro":"订阅Iconscout Pro","back":"Back","save":"保存","downloaded":"插入","download_free":"免费插入","open_web":"Open in Web","download_computer":"Save to My Computer","view_pack":
"View {pack} Pack","view_category":"View {category} Category","confirm_purchase_use":"确认购买和插入","download_comp":"我想尝试 Comp 图像","copy_clipboard":"复制到剪贴板","edit_profile":"编辑配置文件",
"add_member":"添加会员","upgrade":"升级","browse":"Browse","add_designer":"Add to Favourites","remove_designer":"Remove","view_profile":"View Profile",
"select_contributor":"Select contributor you want to add","add_one_contributor":"Select {name}","add_contributors":"选择{name}和{more}其他参与者","apply_filter":"Apply Filters","clear":"清除",
"get_offer":"获得报价","close":"关闭","load_more":"加载更多"},"messages":{"authenticating":"正在验证...","downloading":"正在下载...","liked":"Liked","dislike":"Disliked","added":"Contributor
Added Succcessfully","login_to_download":"Please Login to download High Quality assets...","prototype_no_items":"对不起!我们在此类别中没有资产.","copied_successfully":"Copied to Clipboard! Paste
to Artboard Now!"},"footer":{"icon_format":"Import","fill_type":"Fill as","download_size":"Import Size"},"modals":{"item":{"profile":{"dimensions":"Original Dimension: {w} ✕ {h}","more":"More
Options","related":"Related {asset}"},"purchase":{"title":"Confirm Purchase"}}},"myscout":{"search_ph":" 搜索您的所有资产","tabs":{"projects":"Projects","shared_with_me":"Shared with Me"},
"filters":{"status":{"items":"{total} item | {total} items","projects":"{total } projects"},"sorting":{"title":"Sort By","order":{"title":"Order","ascending":"Ascending","descending":"Descend
ing","reccent":"Recent","last_modified":"Last Modified"},"group":{"title":"Group By","item":"Folders and Files","type":"File Type"}},"filters":{"title":"Filters","file_types":{"title":"File Typ
es","svg":"SVG","png":"PNG","eps":"EPS"},"assets":{"title":"Asset Types","icon":"Icon","illustration":"Illustration","photo":"Photo","private":"Private assets","iconscout":"从iconscout添加"}}}},"pa
ges":{"login":{"title":"登录到您的Iconscout帐户","desc":"获得2,000,000多种设计资源","email_ph":"Your Email","password_ph":"Password","no_account":"还没有帐号?"},"contributors":{"title":"Add Contrib
utor","all":"All","filters":{"iconist":"Iconist","illustrator":"Illustrator","photographer":"Photographer"},"search_ph":"Search Desingers, Illustrator or Photographer","items":"{total} Items"},"do
wnloads":{"search_ph":"搜索您的下载","no_downloads":"Oops.. there is no downloads"},"home":{"search_ph":"输入英文单词搜索[刘余汉化]","designer_search_ph":"在选定的设计师中搜索"},"likes":{"search_ph":"搜
索喜欢的人","no_likes":"请喜欢一些图标等,它们会显示在这里!"},"prototype":{"desc":"选择多层,并用随机图标快速填充它们"},"settings":{"account":{"title":"我的帐户","logged_in":"登录为","subscriptions":{"icon
scout":"图标订阅","my_scout":"我的图标订阅","next_recurring":"下次结帐日期为{date}"},"members":"{total} Members","team":{"add":"新增团队","roles":{"member":"会员","admin":"管理员"}}},"plugin":{"title":"
插件设置","theme":"主题","themes":{"light":"Light","dark":"Dark"},"previewSizes":{"lg":"Large","md":"Medium","sm":"Small"},"iconFormats":{"svg":"SVG","png":"PNG"},"illustrationFormats":{"thumb":"缩
略图","png":"PNG","svg":"SVG"},"photoFormats":{"thumb":"缩略图","original":"原件"},"fillTypes":{"fill":"填充","mask":"面具"},"imageSizes":{"thumb":"缩略图","thumb_title":"Width: {size}px","hd":"High
Quality","hd_title":"Width: {size}px","original":"Original","original_title":"Original Size uploaded by Contributor"},"download":{"title":"Download to my computer","settings":"Download Settin
gs","icon":"Preferred Icon Format","image":"Preferred Image Size","location":"Save to location","license":"Get License details"}}}}};
有没发现什么问题,就是通常你需要汉化的都集中在一个角落里,通过
"header"; styles";"buttons",
等标签去分类这样不光光方便我们汉化,也同样方便编程人员去修改内容。大致汉化的方法就是这样。我再讲几个需要注意的要点。
比如在汉化登录框时,我发现输入的账号与密码的地方汉化后无法打字,输入密码的地方无法隐藏密码,具体原因就是因为@KEY中指令并不是单纯的"email_ph"而是attrs:{"type":"text","placeholder":_vm.$t('pages.login.email_ph')},
具体原理我也不大懂。但是这里我汉化不了就对了。
汉化XD插件纯属爱好,同时想将自己汉化的插件无偿的分享出去。吾爱破解在我学习计算机语言中帮了我很大的忙,要知道我再2020年3月份还是个重装电脑都不会的小白。哈哈哈。最后附上我汉化的6个XD插件这是第一期,如果我能注册成功我会在
这个帖子不断更新我汉化的XD插件,免费,免费,免费/!!!重要的事情说3遍.如果我通过了,需要汉化的XD插件可以评论区留言,我会优先考虑汉化。 |
|