diff --git a/generate_translate_template.ps1 b/generate_translate_template.ps1 new file mode 100644 index 000000000..fb8e8b046 --- /dev/null +++ b/generate_translate_template.ps1 @@ -0,0 +1,14 @@ + +$case1 = $(Get-ChildItem -r -i *.js | Select-String "i18n\(`"([^`"]*?)`"\)" -AllMatches | ForEach-Object -Process {$_.Matches[0].Groups[1].Value}) +$case2 = $(Get-ChildItem -r -i *.js | Select-String "i18n\(`'([^`']*?)`'\)" -AllMatches | ForEach-Object -Process {$_.Matches[0].Groups[1].Value}) +$all_case = $case1 + $case2 + +$key_pairs = $( $all_case |Sort-Object -Unique -CaseSensitive|ForEach-Object -Process {$x = $_ -replace "`"","\`""; "`n`"{0}`":`"{0}`"" -f $x}) + +$all_str = $key_pairs -join ',' + +"translation= +{$all_str +};" | Out-File -FilePath translation_template.js_temp + + diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Util/i18n.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Util/i18n.js index 77dd28a36..9f45ca79a 100644 --- a/src/PartKeepr/FrontendBundle/Resources/public/js/Util/i18n.js +++ b/src/PartKeepr/FrontendBundle/Resources/public/js/Util/i18n.js @@ -3,6 +3,15 @@ * @param string * @return {*} */ + function i18n (string) { - return string; -} \ No newline at end of file + if(string in translation) + { + return translation[string]; + } + else + { + return string; + } + +} diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Util/translation_zh-hans.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Util/translation_zh-hans.js new file mode 100644 index 000000000..73222205e --- /dev/null +++ b/src/PartKeepr/FrontendBundle/Resources/public/js/Util/translation_zh-hans.js @@ -0,0 +1,628 @@ +translation= +{ +"":"", +"

PartKeepr needs your support

":"

PartKeepr需要你的支持

", +"

Every cent helps to keep development alive!

":"

每一角钱都能让开发继续!

", +"

We need you to support development, so we can create new cool features, user interface improvements and regular releases!

":"

我们的开发需要你的支持,那样我们就可以添加新的酷的功能、改善用户界面和更经常的发布!

", +"A category must be selected":"一个分类必须被选中", +"Absolute":"绝对", +"Acknowledge Notice":"通知提示", +"Action":"动作", +"Actions":"动作", +"Active":"激活的", +"Add":"添加", +"Add Action":"添加动作", +"Add Batch Job":"添加批处理任务", +"Add Category":"添加分类", +"Add Data":"添加数据", +"Add Distributor":"添加分销商", +"Add Filter":"添加过滤", +"Add Filter Expression":"添加过滤表达式", +"Add Footprint":"添加封装", +"Add Item":"添加物件", +"Add Logo":"添加Logo", +"Add Manufacturer":"添加生产商", +"Add Meta-Part":"添加虚元件", +"Add new field":"添加新域", +"Add Parametric Search Expression":"添加参数化搜索表达式", +"Add Part":"添加元件", +"Add Part Measurement Unit":"添加元件计数单位", +"Add Part(s)":"添加元件", +"Add Project":"添加项目", +"Add Query Field…":"添加查询域…", +"Add selected Field":"添加选择域", +"Add Stock":"添加库存", +"Add Storage Location":"添加仓库位置", +"Add Unit":"添加单位", +"Add Update Field…":"添加更新域…", +"Add User":"添加用户", +"Add Value":"添加值", +"Add…":"添加…", +"Add/Edit Meta-Part":"添加/编辑虚元件", +"Add/Remove Stock":"添加/去除库存", +"Add/Remove Stock Configuration":"添加/去除库存配置", +"Address":"地址", +"All Subcategories":"所有子分类", +"All tips have been marked as unread":"所有提示都被标记为已读", +"Allowed SI-Prefixes":"允许SI前缀", +"Always import":"总是导入", +"Always set to:":"总是设置为:", +"Amount":"数目", +"An existing storage location must be selected":"一个现有的仓库位置必须选中", +"Any Stock Level":"所有库存水平", +"Apply":"应用", +"Apply Parts":"应用元件", +"Applying distributors…":"应用分销商…", +"Applying theme…":"正在应用主题…", +"Are you sure to delete the preset?":"确定要删除这个预设?", +"Attachment Renderer":"附件显示", +"Attachments":"附件", +"Auto-Fill Distributors":"自动填写分销商", +"Available":"可有的", +"Available fields":"可有的域", +"Available Formats":"可有的格式", +"Available Image Formats":"可有的图片格式", +"Average Part Value":"平均元件值", +"Avg. Price":"平均价格", +"Backtrace":"回溯", +"Barcode Scanner Configuration":"条码扫描仪配置", +"Base Entity":"基本实体", +"Base Entity not selected":"基本实体未选中", +"Basic":"基本", +"Basic Data":"基本数据", +"Batch Job":"批处理任务", +"Batch Job Completed Successfully":"批处理任务完成了", +"Batch Job Name":"批处理任务名称", +"Batch Jobs":"批处理任务", +"Behaviour when item does not exist":"物件不存在时的行为", +"Behaviour when item exists":"物件存在时的行为", +"Best Datasheet":"最好的数据表单", +"CAD Model":"CAD模型", +"CAD Models":"CAD模型", +"Cancel":"取消", +"Categories":"分类", +"Categories / Part Details":"分类/元件细节", +"Category":"分类", +"Category Name":"分类名称", +"Category Scope":"分类的范围", +"Change Image":"替换图片", +"Chart":"图标", +"Choose preset…":"选择预设…", +"Choose Projects to create a report for":"选择创建报告的项目", +"Close":"关闭", +"Code":"码", +"Collapse All":"折叠全部", +"Collapse all Groups":"折叠全部分组", +"Comment":"评论", +"Compliance Documents":"服从性文档", +"Condition":"条件", +"Configuration":"配置", +"Configure":"配置", +"Configure Columns":"配置列", +"Confirm Category Delete":"确认分类删除", +"Confirm in-line stock level changes from the parts grid":"确认从元件表格的库存改变", +"Confirm preset deletion":"确认预设删除", +"Connect":"连接", +"Connected":"连接上的", +"Contained Parts":"包含元件", +"Copy contents from:":"复制内容从:", +"Count":"计数", +"Counts per Unit":"每单位的计数", +"Create blank item after save":"保存后创建空物件", +"Create blank preset":"创建空预设", +"Create Copy after save":"保存后创建复制物件", +"Create Date":"创建日期", +"Create date":"创建日期", +"Create new entity":"创建新实体", +"Create new item":"创建新物件", +"Create new Part":"创建新元件", +"Create Report":"创建报告", +"Create Storage Locations":"创建仓库位置", +"Created":"创建了", +"Creating Distributor…":"创建分销商…", +"Creating Manufacturer…":"创建生产商…", +"Creating Unit…":"创建单位…", +"Critical Error":"严重的错误", +"CSS Class":"CSS类", +"CSV":"CSV", +"Currency":"货币", +"Currency Renderer":"货币显示", +"Currency Symbol":"货币符号", +"Currency Symbol after value":"货币符号在值之后", +"Current Password":"当前密码", +"Current Statistics":"当前统计", +"Custom Export…":"自定义导出…", +"Customize…":"自定义…", +"Datasheet":"数据表单", +"Datasheets":"数据表单", +"Date":"日期", +"Decimal precision":"十进制精度", +"Default":"默认", +"Delete":"删除", +"Delete Action":"删除动作", +"Delete Batch Job":"删除批处理任务", +"Delete Category":"删除分类", +"Delete Distributor":"删除分销商", +"Delete field":"删除域", +"Delete Footprint":"删除封装", +"Delete Item":"删除物件", +"Delete Logo":"删除Logo", +"Delete Manufacturer":"删除生产商", +"Delete Part":"删除元件", +"Delete Part Measurement Unit":"删除元件计数单位", +"Delete Project":"删除项目", +"Delete Query Field":"删除查询域", +"Delete Report":"删除报告", +"Delete selected preset":"删除选中的预设", +"Delete Storage Location":"删除仓库位置", +"Delete Unit":"删除单位", +"Delete Update Field":"删除更新域", +"Delete User":"删除用户", +"Description":"描述", +"Detail":"细节", +"Details":"细节", +"Details…":"细节…", +"Developers":"开发者", +"Different Parts":"不同元件", +"Disconnect":"断开连接", +"Disconnected":"连接断开的", +"Display":"显示", +"Display Field":"显示域", +"Display File":"显示文件", +"Display tips on login":"显示登录提示", +"Displaying {0} image(s) from {1} part(s)":"从{1}个元件显示{0}幅图片", +"Distributor":"分销商", +"Distributor is used for price calculations":"分销商用于价格计算", +"Distributor Order Number":"分销商订单号", +"Distributors":"分销商", +"Do you really want to remove the parts in the project report from the stock?":"确认删除项目报告中的元件库存?", +"Do you really wish to delete the category %s?":"确认删除分类:%s?", +"Do you really wish to delete the item %s?":"确认删除物件:%s?", +"Do you really wish to delete the part measurement unit'%s'?":"确认删除元件计数单位:%s?", +"Do you really wish to delete the unit'%s'?":"确认删除单位:%s?", +"Do you really wish to delete the user '%s'?":"确认删除用户:%s?", +"Don't ask again":"不再提问", +"Don't import this sub-entity":"不导入这条实体", +"Don't set":"不设置", +"Don't update data if an item exists":"如果物件存在则不更新数据", +"Duplicate":"复制", +"Duplicate basic data only":"只复制基本数据", +"Duplicate with all data":"带所有数据复制", +"Duplicates the selected part with the data found in the \"basic\" tab and opens the editor. Doesn't immediately saves the duplicate, in order to allow editing.":"连带\"基本\"页面数据,复制选中的元件,然后打开编辑器。为了能编辑,不要立即保存复制项。", +"Duplicates the selected part with all data including attachments, distributors etc. Doesn't immediately saves the duplicate, in order to allow editing.":"连带复制选中的元件. Doesn't immediately saves the duplicate, in order to allow editing.", +"Dynamic":"动态", +"E-Mail":"电子邮箱", +"Edit":"编辑", +"Edit Category":"编辑分类", +"Edit Meta-Part":"编辑虚元件", +"Edit Parameter":"编辑参数", +"Edit Part":"编辑元件", +"Email":"电子邮箱", +"End":"结束", +"Enter Search Terms":"输入搜索条件", +"Enter the value":"输入值", +"Entity":"实体", +"Equals":"等于", +"Error":"错误", +"Errors":"错误", +"Errors occured":"错误发生了", +"Excel 2007 and later":"Excel2007或更新", +"Execute Batch Job":"执行批处理任务", +"Execute import":"执行导入", +"Expand All":"展开所有", +"Expand all Groups":"展开所有分组", +"Export":"导出", +"Export Grid":"导出表格", +"Fax":"传真", +"Field":"域", +"Field name which denotes the quantity":"表示这个量的域名称", +"File":"文件", +"File Upload":"文件上传", +"Filename":"文件名", +"Filter":"过滤", +"Filter by Part Parameter":"按元件参数过滤", +"Fixed":"固定", +"Footprint":"封装", +"Footprints":"封装", +"Formatting":"格式化", +"From":"从", +"Full Report":"完整报告", +"Fulltext Search":"全文搜索", +"General Info":"一般信息", +"Greater than":"大于", +"Greater than or equals":"大于等于", +"Has attachments":"有附件", +"Has attachments?":"有附件?", +"Help":"帮助", +"Hidden":"隐藏的", +"Hover Title":"悬浮标题", +"Icon Renderer":"图标显示", +"ID Renderer":"ID显示", +"Ignore":"忽略", +"Ignore this entry for price calculations":"价格计算时忽略该条目", +"Image":"图片", +"Image Upload":"图片上传", +"Images":"图片", +"Import":"导入", +"Import Field":"导入域", +"Import Images":"导入图片", +"Import Results":"导入结果", +"Index":"赋序", +"Initial Stock Level":"初始库存水平", +"Insert special character":"插入特殊字符", +"Internal ID":"内部ID", +"Internal Part Number":"内部元件编号", +"Internet Explorer does not support HTML5 webcams":"IE浏览器不支持HTML5摄像头", +"Invalid quantity":"无效数量", +"Invert":"取反", +"Item Price":"物件价格", +"Key":"键", +"Legacy User":"历史用户", +"Length":"长度", +"Less than":"小于", +"Less than or equals":"小于等于", +"Load Report":"加载报告", +"Loading…":"加载中…", +"Logged in as":"登录为", +"Logos":"Logo", +"Lot Number":"批号", +"Manufacturer":"生产商", +"Manufacturer Logos":"生产商Logo", +"Manufacturer Name":"生产商名称", +"Manufacturer Part Number":"生产商元件编码", +"Manufacturers":"生产商", +"Mapping":"映射", +"Mark all tips unread":"标记所有提示为已读", +"Mark Part Measurement Unit as Default":"使该元件计数单位为默认", +"Mark selected preset as default":"使选中的预设为默认", +"Match field":"匹配域", +"Match import data with existing data using:":"按照…匹配现有数据与导入数据", +"Matches a list":"匹配列表", +"Matches a subtext with wildcards (%)":"用通配符(%)匹配字符串", +"Max Value":"最大值", +"Max.":"最大", +"Maximum upload size: %s":"最大上传大小:%s", +"Measurement Unit":"测量单位", +"Measurement Unit Name":"测量单位名称", +"Message":"消息", +"Message Log":"消息日志", +"Message of the day":"今日消息", +"Meta Part":"虚元件", +"Min Value":"最小值", +"Min.":"最小", +"Min. Stock":"最小库存", +"Minimum Numbers":"最小数字", +"Minimum Stock":"最小库存", +"Minimum Stock Level":"最小库存水平", +"Modifier":"修饰器", +"More Information":"更多信息", +"Move down":"向下移动", +"Move to bottom":"移到最下", +"Move to top":"移到最上", +"Move up":"向上移动", +"MPN":"生产商元件编码", +"Multi-create storage locations":"创建多个仓库位置", +"Multi-Create Storage Locations":"创建多个仓库位置", +"Multiple Parts found":"多个元件找到", +"Name":"名称", +"Name Prefix":"名称前缀", +"Needs Review":"需要审阅", +"Needs Review?":"需要审阅?", +"New Batch Job":"新批处理任务", +"New Distributor":"新分销商", +"New Footprint":"新封装", +"New Item":"新物件", +"New Manufacturer":"新生产商", +"New Part Measurement Unit":"新元件计数单位", +"New Password":"新密码", +"New Password (Confirm)":"新密码(重输)", +"New Project":"新项目", +"New Storage Location":"新仓库位置", +"New System Notice":"新系统通告", +"New Unit":"新单位", +"New User":"新用户", +"Next Meta-Part":"新虚元件", +"Next Tip":"新提示", +"No action selected":"没有选中的动作", +"No attachments":"没有附件", +"No Parameters":"没有参数", +"No preset selected":"没有选中的预设", +"Nominal Value":"默认值", +"None":"无", +"none":"无", +"Not equals":"不等于", +"Not logged in":"未登录", +"Numeric":"数值", +"Object Field Renderer":"对象域显示", +"Octopart":"Octopart", +"OctoPart":"Octopart", +"Octopart Error":"Octopart错误", +"Octopart is not configured":"Octopart未配置", +"Octopart Search":"Octopart搜索", +"OctoPart Search":"Octopart搜索", +"Octopart…":"Octopart…", +"Offers":"报价", +"OK":"好", +"Operator":"运算符", +"Order Amount":"订单数量", +"Order Number":"订单编号", +"Overage":"过量", +"Overage Type":"过量类型", +"Package Price":"包装价格", +"Packaging Unit":"打包单位", +"Parameter":"参数", +"Parameter Criterias":"参数标准", +"Parameter Name":"参数名称", +"Parameters":"参数", +"Part":"元件", +"Part Description":"元件描述", +"Part Details":"元件细节", +"Part Distributor":"元件分销商", +"Part Filter":"元件过滤", +"Part Manager":"元件管理", +"Part Manager Layout":"元件管理布局", +"Part Manufacturer":"元件生产商", +"Part Measurement Unit":"元件计数单位", +"Part Measurement Units":"元件计数单位", +"Part Name":"元件名称", +"Part Number":"元件编号", +"Part Parameter Name":"元件参数名称", +"Part Parameter Renderer":"元件参数显示", +"Part Parameters":"元件参数", +"Part(s)":"元件", +"PartKeepr: Login":"PartKeepr: 登录", +"Parts":"元件", +"Parts List":"元件列表", +"Parts with price":"有价格的元件", +"Parts without price":"无价格的元件", +"Password":"密码", +"Password successfully changed":"成功修改了密码", +"Passwords don't match":"密码不相同", +"Path":"路径", +"Patreon Status":"Patreon状态", +"Per Item":"每物件", +"Percent":"百分比", +"Phone":"电话", +"Please enter the project report name:":"请输入项目报告名称:", +"Power":"Power", +"Prefix":"前缀", +"Prefix with zeroes":"以零补前", +"Preview":"预览", +"Previous Meta-Part":"预览虚元件", +"Previous Project Reports":"之前的项目报告", +"Previous Tip":"之前的提示", +"Price":"价格", +"Price per item":"单价", +"Price per Item":"单价", +"Pricing":"出价", +"Processing distributors…":"处理分销商…", +"Production Remarks":"产线标注", +"Project":"项目", +"Project Description":"项目描述", +"Project Name":"项目名称", +"Project Parts":"项目的元件", +"Project Report":"项目报告", +"Project Report MetaPart Renderer":"项目报告虚元件显示", +"Project Report Name":"项目报告名称", +"Project Report Quantity Renderer":"项目报告数量显示", +"Project Report Remark Renderer":"项目报告标注显示", +"Project Report Stock Availability Renderer":"项目报告库存显示", +"Project Reports":"项目报告", +"Project Run":"项目运行", +"Project Runs":"项目运行", +"Projects":"项目", +"Property":"属性", +"Provider":"提供者", +"Qty":"数量", +"Quantity":"数量", +"Query Fields":"查询域", +"Ratio":"比例", +"Ready.":"就绪。", +"Reference Design":"参考设计", +"Reference Designs":"参考设计", +"Refresh":"刷新", +"Reload":"重装载", +"Remarks":"标注", +"Remove":"去除", +"Remove filter":"去除过滤", +"Remove Part(s)":"去除元件", +"Remove parts from stock":"去除元件库存", +"Remove Stock":"去除库存", +"Removed stock and created a new project run.":"去除库存以重建新项目运行", +"Render the icon if the column is zero":"如果列为零则显示图标", +"Renderer":"显示", +"Renderer Configuration":"显示配置", +"Renderers":"显示", +"Renders a field value from an object":"显示一个对象的域值", +"Renders a specific icon if the part is a meta part":"如果是虚元件则显示特定图标", +"Renders a specific part parameter":"显示特定元件参数", +"Renders a value with the system defined currency":"以系统定义的汇率显示值", +"Renders an attachment icon if one or more attachments exist":"如果附件存在则显示附件图标", +"Renders an icon":"显示图标", +"Renders an ID in both base36 as well as integer format":"同时以36进制和10进制显示ID", +"Renders the amount of required metadata quantities":"显示需要的元数据数量", +"Renders the available stock level which includes the sum of all meta parts":"以所有虚元件数量之和显示的库存水平", +"Renders the remarks field":"显示标注域", +"Renders the stock level including the part unit":"显示库存水平的元件单位", +"Request":"请求", +"Required":"要求的", +"Required Fields":"必要的域", +"Reset":"重置", +"Reset Filter":"重置过滤", +"Response":"响应", +"Response Status Code":"响应状态码", +"Restore Defaults":"恢复默认", +"Results":"结果", +"Reveal Category for selected part":"为选中的元件显示分类", +"Run Date/Time":"运行时间日期", +"Sample":"样品", +"Save":"保存", +"Save Batch Job":"保存批处理任务", +"Save Distributor":"保存分销商", +"Save Footprint":"保存封装", +"Save Manufacturer":"保存生产商", +"Save Part Measurement Unit":"保存元件计数单位", +"Save Preset":"保存预设", +"Save Project":"保存项目", +"Save Project Report":"保存项目报告", +"Save Storage Location":"保存仓库位置", +"Save System Notice":"保存系统通告", +"Save Unit":"保存单位", +"Save User":"保存用户", +"Saving…":"保存中…", +"Search":"搜索", +"Search beginning of string (string*)":"搜索字符串开始(string*)", +"Search Fields":"搜索域", +"Search middle of string (*string*)":"搜索字符串中间(*string*)", +"Search Mode":"搜索模式", +"Search Part":"搜索元件", +"Search Part Configuration":"搜索元件配置", +"Search string as-is":"搜索同样的字符串", +"Searches for a part and then allows the user to increase/decrease the stock level":"搜索元件然后允许用户增减库存水平", +"Searches for a part in the parts list":"在元件列表中搜索元件", +"Searches for a part. If the part is not found, a create part window is opened":"搜索元件,如果未找到则打开新建元件窗口", +"Select a field":"选择一个域", +"Select a file to upload or enter an URL to load the file from":"选择上传的文件或文件URL", +"Select all fields to be searched":"选择所有用于搜索的域", +"Select an action":"选择一个动作", +"Select an item to edit":"选择一个编辑的物件", +"Select an operator":"选择一个运算符", +"Select CSV file for import…":"选择导入的CSV文件…", +"Select Entity":"选择实体", +"Select entity":"选择实体", +"Select entity…":"选择实体…", +"Select field":"选择域", +"Select Field":"选择域", +"Select File...":"选择文件…", +"Select Image...":"选择图片…", +"Select match field":"选择匹配的域", +"Select the field(s) to be searched":"选择用于搜索的域", +"Selected Category":"选中的分类", +"Separate search terms":"分开搜索条目", +"Separate thousands":"分开千位", +"Server Configuration":"服务器配置", +"Set Stock Level for Part(s)":"为元件设置库存水平", +"Set to fixed value":"设为固定值", +"Set to:":"设为:", +"Set Value…":"设为值…", +"Severity":"严重性", +"Short Name":"短名称", +"Show category descriptions (requires reload)":"显示分类的描述(需要重载)", +"Show Parts that need to reviewed only":"只显示需要审阅的元件", +"Show Parts without Price only":"只显示无价格的元件", +"Show Parts without stock removals only":"只显示未有库存减少的元件", +"Show read tips":"显示读过的提示", +"Show Tips on login":"登陆时显示提示", +"Size":"尺寸", +"SKU":"库存进出单元", +"SKU URL":"库存进出单元URL", +"Source File":"源文件", +"Start":"开始", +"Statistics":"统计", +"Statistics Chart":"统计图标", +"Status":"状态", +"Stock":"库存", +"Stock History":"库存历史", +"Stock Level":"库存水平", +"Stock Level < Minimum Stock Level":"库存水平 < 最小库存水平", +"Stock Level = 0":"库存水平 = 0", +"Stock Level > 0":"库存水平 > 0", +"Stock Level Renderer":"库存水平显示", +"Stock Mode":"库存模式", +"Stock Removal Complete":"完成库存扣除", +"Stock Settings":"库存设置", +"Stock to use":"使用的库存", +"Stock User":"库存使用者", +"Stop import":"停止导入", +"Storage Location":"仓库位置", +"Storage Locations":"仓库位置", +"Sum":"综合", +"Sum (Order)":"订单总和", +"Summary":"总结", +"Symbol":"符号", +"System":"系统", +"System Error":"系统错误", +"System Information":"系统信息", +"System Notices":"系统公告", +"System Preferences":"系统设置", +"System Preferences":"系统设置", +"Take image":"拍照", +"Take picture and upload":"拍照并上传", +"Take Webcam Photo":"使用摄像头拍照", +"Takeover all data":"接管所有数据", +"Text":"文本", +"The batch job has been executed successfully":"批处理任务运行成功", +"The entity is required, but it is not configured":"该实体是需要的,但是没有配置", +"The field is required, but it is not configured":"该域是需要的,但是没有配置", +"The field must be set to a value, but it is ignored":"该域必须设置值,但是忽略了", +"The field to render from an object":"从一个对象显示的域", +"The first number is the ID in decimal, the second number is the ID in base36. To search in base36 format you need to prefix the search string with #, example: #15y":"第一个数字是十进制显示的ID,第二个数字是36进制显示的ID。如果要以36进制搜索,需要以#开始,比如:#15y", +"The following cronjobs aren't running:":"以下定时任务(Cron)没有在执行:", +"The icon CSS class to render":"显示的CSS类图标", +"The maximum upload size can be configured in your php.ini file. There are two separate options:
- post_max_size
- upload_max_filesize

You need to set both values high enough.":"最大上传文件大小可以在'php.ini'中配置。其中有两个选项:
- post_max_size
- upload_max_filesize

你需要将两者都设置到足够大。", +"The number of attachments must be greater than {0}":"附件个数必须大于{0}", +"The number of distributors must be greater than {0}":"分销商个数必须大于{0}", +"The number of manufacturers must be greater than {0}":"生产商个数必须大于{0}", +"The selected renderer cannot be configured":"选中的显示方式不能设置", +"The server returned a response which we were not able to interpret.":"服务器传回了不能解释的的响应。", +"The title to display when the mouse is hovered above the icon":"鼠标悬浮在图标商显示的标题", +"The username must be 3-50 characters in length and may only contain the following characters: a-z, A-Z, 0-9, an underscore (_), a backslash (\), a slash (/), a dot (.) or a dash (-)":"用户名必须是3至50字符长度,只包含以下字符: a-z, A-Z, 0-9,下划线 (_),反斜线 (\), 斜线 (/), 英文点 (.) or 横杠 (-)", +"Theme":"主题", +"Theme Tester":"主题测试", +"This field is required":"该域是必须的", +"This is a protected user, which may not be changed":"这是一个受保护的用户,不能被修改", +"Thumbnail View":"缩略图视图", +"Timeout (ms)":"超时(ms)", +"Tip of the Day":"进入提示", +"Title":"标题", +"To":"至", +"Tooltip":"工具提示", +"Total Part Value":"元件总值", +"Type":"类型", +"Unable to retrieve the statistic data":"无法提取统计数据", +"Unacknowledged System Notices":"未接收的系统公告", +"Unassigned Meta-Parts":"未签名的虚元件", +"Unit":"单位", +"Unit Name":"单位名称", +"Units":"单位", +"unknown":"未知", +"Update data if an item exists":"如果物件存在则更新数据", +"Update Fields":"更新域", +"Upload":"Upload", +"Upload Size Information":"上传大小信息", +"Uploading CAD Model…":"上传CAD模型中…", +"Uploading datasheet…":"上传数据表单中…", +"Uploading Image…":"上传图片中…", +"Uploading Reference Designs…":"上传参考设计中…", +"Uploading...":"上传中...", +"URL":"URL", +"Use":"用", +"Use enter/return to indicate scan input end":"使用回车表示扫描输入结束", +"Use entered text as-is":"按照原样使用输入的文本", +"Use this distributor for price calculations in project reports":"使用该分销商计算项目报告中的价格计算", +"used":"已用的", +"Used for price calculations":"用于价格计算", +"Used in Projects":"用于项目", +"User":"用户", +"User Interface":"用户界面", +"User Preferences":"用户选项", +"Username":"用户名", +"Username or password invalid.":"用户名或密码无效。", +"Users":"用户", +"Value":"值", +"Value Type":"值类型", +"View":"视图", +"View Part":"检视元件", +"Webcam not supported":"摄像头不支持", +"Website":"网站", +"Width":"宽度", +"You are authenticated via an external user provider, password changing is not available.":"你正使用外部用户提供器登录,不能在此修改密码", +"You have unassigned meta-parts. In order to remove parts from stock, you need to assign the meta-parts first.":"你有未赋值的虚元件。你必须赋值虚元件,然后才能扣除库存。", +"You need to re-login with the new password. Click OK to re-login.":"你需要用新密码登录。点击\"好\"以再次登录。", +"You need to select a base entity to perform the query against":"你需要选择来执行查询的基础条目", +"You need to select a part":"你需要选择一个元件", +"You wish to add %s %s of part %s. Is this correct?":"你要添加%s %s的元件%s。是吗?", +"You wish to remove %s %s of the part %s. Is this correct?":"你要移除%s %s的元件%s。是吗?", +"You wish to set the stock level to %s %s for part %s. Is this correct?":"你要将库存水平设为%s %s为元件%s。是吗?", +"Your database schema is not up-to-date! Please re-run setup immediately!":"你的数据库格局不是最新的!请再次运行网站的setup!" +}; diff --git a/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig b/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig index 193004895..f102df37e 100644 --- a/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig +++ b/src/PartKeepr/FrontendBundle/Resources/views/index.html.twig @@ -33,6 +33,11 @@ {% endimage %} + {% javascripts output='js/compiled/translation.js' + '@PartKeeprFrontendBundle/Resources/public/js/Util/translation_zh-hans.js' %} + + {% endjavascripts %} +