longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.76k stars 963 forks source link

阿语适配问题 #731

Closed wutiaorong closed 1 year ago

wutiaorong commented 2 years ago

系统语言是阿语的情况下,选图选不到正确的图,图片预览页向下滑动的时候会崩溃

longitachi commented 2 years ago

能描述下详细步骤吗,“选图选不到正确的图”是什么意思没看明白

wutiaorong commented 2 years ago

能描述下详细步骤吗,“选图选不到正确的图”是什么意思没看明白

选第一张图,结果选中的是最后一张图

Lifei0229 commented 1 year ago

4.3.7只是适配阿语语言, 并没有解决手机阿语系统语言,图库索引错误 选择的还是不对

Lifei0229 commented 1 year ago

作者Demo 是没有加阿语的系统语言 所以发现不了问题,你项目Localizations 加上Arabic 就可以复现了

我的临时解决如下 1 ZLPhotoPreviewController.swift 文件 51行加 if (Locale.preferredLanguages.first ?? "en").hasPrefix("ar") { view.semanticContentAttribute = .forceLeftToRight } 2 搜索 class ZLPhotoPreviewSelectedView 840行 if (Locale.preferredLanguages.first ?? "en").hasPrefix("ar") { view.semanticContentAttribute = .forceLeftToRight }

longitachi commented 1 year ago

721