首页 > cef > CEF-设置语言首选项Accept-Language
2017十一月6

CEF-设置语言首选项Accept-Language

针对www.facebook.com等多语言网页

使用属性CefSettings.accept_language_list全局设置

使用属性CefBrowserSettings.accept_language_list取代

或使用以下取代

CefRequestHandler::ReturnValue DUINativeWeb::OnBeforeResourceLoad(CefRefPtr<CefBrowser> browser,CefRefPtr<CefFrame> frame,CefRefPtr<CefRequest> request,CefRefPtr<CefRequestCallback> callback)
{
	if (request)
	{
		if (g_pDMWebApp && g_pDMWebApp->m_SwitchMap.end()!=g_pDMWebApp->m_SwitchMap.find(L"lang"))
		{
			CefRequest::HeaderMap headerMap;
			request->GetHeaderMap(headerMap);
			headerMap.insert(std::pair<CefString, CefString>(L"Accept-Language",SAFE_STR(g_pDMWebApp->m_SwitchMap[L"lang"].c_str())));
			request->SetHeaderMap(headerMap);
		}

文章作者:hgy413
本文地址:http://hgy413.com/4497.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

34 Responses to “CEF-设置语言首选项Accept-Language”

  1. #1 minecraft 回复 | 引用 Post:2018-10-06 07:38

    Hi there, everything is going nicely here and ofcourse every one is sharing
    data, that’s actually excellent, keep up writing.

  2. #2 minecraft 回复 | 引用 Post:2018-10-07 01:45

    Hello there, I do think your web site might be having browser compatibility issues.
    When I look at your website in Safari, it looks fine however when opening in IE,
    it has some overlapping issues. I merely wanted to
    give you a quick heads up! Aside from that, wonderful website!

  3. #3 minecraft 回复 | 引用 Post:2018-10-07 16:18

    I couldn’t resist commenting. Very well written!

  4. Hi there! Would you mind if I share your blog with my zynga group?
    There’s a lot of people that I think would really enjoy your
    content. Please let me know. Many thanks

  5. Heya i’m for the primary time here. I found this board and I in finding It really helpful &
    it helped me out a lot. I’m hoping to provide something back and aid others like you
    aided me.

  6. #6 quest bars cheap 回复 | 引用 Post:2018-11-03 15:29

    I love reading an article that will make people think. Also, many
    thanks for allowing me to comment!

  7. #7 Sling TV 回复 | 引用 Post:2018-11-10 01:55

    Paragraph writing is also a excitement, if you know then you can write otherwise it is complicated to write.

  8. I think the admin of this web site is genuinely working hard in favor of his site,
    since here every information is quality based information.

  9. I have read some good stuff here. Certainly price bookmarking for revisiting.
    I surprise how much effort you set to create the sort of wonderful informative site.

  10. #10 Sling TV 回复 | 引用 Post:2018-11-14 03:47

    Hi there to all, since I am genuinely keen of reading
    this webpage’s post to be updated daily. It includes fastidious material.

  11. #11 Sling TV 回复 | 引用 Post:2018-11-15 07:37

    This design is spectacular! You obviously know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well,
    almost…HaHa!) Wonderful job. I really loved what you had to say,
    and more than that, how you presented it. Too cool!

  12. I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly the
    same nearly very often inside case you shield this hike.

  13. #13 descargar facebook 回复 | 引用 Post:2018-12-06 04:04

    You actually make it appear so easy along with
    your presentation but I in finding this topic to be really something
    which I feel I might never understand. It sort of feels too complicated and very huge for me.
    I’m taking a look forward for your subsequent post, I will attempt to get the grasp of it!

  14. #14 minecraft 回复 | 引用 Post:2019-03-21 10:21

    Good post! We are linking to this particularly great post on our site.
    Keep up the good writing.

  15. I think this is among the most important information for me.
    And i’m glad reading your article. But should remark on some general things, The site style is perfect,
    the articles is really excellent : D. Good job, cheers

  16. #16 http://tinyurl.com 回复 | 引用 Post:2019-04-02 09:27

    Thanks for your personal marvelous posting! I certainly enjoyed
    reading it, you might be a great author.I will remember to bookmark your blog and may come
    back from now on. I want to encourage you to ultimately continue your great job, have a nice day!

  17. #17 tinyurl.com 回复 | 引用 Post:2019-04-03 18:23

    It’s really a great and useful piece of information. I’m happy that you simply shared this useful information with us.
    Please keep us informed like this. Thank you for sharing.

  18. #18 tinyurl.com 回复 | 引用 Post:2019-04-03 23:24

    Hmm it seems like your site ate my first comment (it was extremely long) so
    I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your
    blog. I too am an aspiring blog blogger but I’m still
    new to everything. Do you have any tips for inexperienced blog writers?
    I’d really appreciate it.

  19. #19 minecraft 回复 | 引用 Post:2019-04-08 21:45

    Simply wish to say your article is as amazing. The clearness for your put
    up is simply excellent and that i could assume you are an expert
    on this subject. Fine along with your permission let
    me to clutch your feed to keep updated with imminent post. Thank
    you a million and please carry on the enjoyable work.

  20. #20 minecraft 回复 | 引用 Post:2019-04-09 09:08

    I was curious if you ever considered changing the page layout of your
    site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or two
    pictures. Maybe you could space it out better?

  21. #21 minecraft 回复 | 引用 Post:2019-04-14 06:56

    Hey I am so delighted I found your blog page, I really
    found you by accident, while I was researching on Askjeeve for something else, Regardless I am here now and would just
    like to say thank you for a remarkable post and a all round exciting blog (I also
    love the theme/design), I don’t have time to look over it all at the moment but
    I have saved it and also added your RSS feeds, so when I have time I
    will be back to read a great deal more, Please do keep
    up the great job.

  22. #22 minecraft 回复 | 引用 Post:2019-04-19 11:18

    Appreciate the recommendation. Let me try it out.

  23. #23 minecraft 回复 | 引用 Post:2019-04-24 18:09

    Hello, Neat post. There’s a problem with your website
    in internet explorer, could test this? IE still is the marketplace leader and a huge component to
    other people will leave out your excellent writing due to this problem.

  24. #24 minecraft download 回复 | 引用 Post:2019-05-13 15:12

    Hey! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly?
    My website looks weird when browsing from my iphone4.
    I’m trying to find a template or plugin that might be able to fix this problem.

    If you have any recommendations, please share. Cheers!

  25. It’s hard to come by well-informed people in this particular subject, however, you sound like you know what you’re talking about!
    Thanks

  26. #26 gamefly free trial 回复 | 引用 Post:2019-05-25 22:41

    Hi! This is my first visit to your blog! We are a team of
    volunteers and starting a new initiative in a
    community in the same niche. Your blog provided us valuable information to
    work on. You have done a marvellous job!

  27. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how can we communicate?

  28. #28 gamefly free trial 回复 | 引用 Post:2019-05-29 06:38

    I was recommended this web site by way of my cousin. I’m now not certain whether or not this put up
    is written by him as no one else recognise such
    exact about my trouble. You are wonderful! Thanks!

  29. #29 gamefly free trial 回复 | 引用 Post:2019-05-30 05:26

    Spot on with this write-up, I actually feel this amazing site needs a lot more attention.
    I’ll probably be back again to see more, thanks for the advice!

  30. #30 gamefly free trial 回复 | 引用 Post:2019-05-31 04:00

    It’s actually a great and helpful piece of info. I am happy that you simply shared this helpful information with us.
    Please keep us informed like this. Thanks for sharing.

  31. #31 gamefly free trial 回复 | 引用 Post:2019-06-03 18:31

    Thanks very interesting blog!

  32. #32 gamefly free trial 回复 | 引用 Post:2019-06-04 04:37

    Have you ever thought about publishing an ebook or guest authoring on other websites?
    I have a blog based upon on the same topics you discuss and would love to have you share some stories/information.
    I know my audience would value your work. If you’re even remotely interested, feel free to
    shoot me an e-mail.

  33. #33 gamefly free trial 回复 | 引用 Post:2019-06-04 20:09

    First of all I would like to say wonderful blog!

    I had a quick question that I’d like to ask if you do not mind.

    I was curious to know how you center yourself and clear your mind before writing.
    I have had trouble clearing my thoughts in getting my ideas out there.

    I truly do enjoy writing but it just seems like the first
    10 to 15 minutes are generally lost simply just trying to figure out how to begin. Any recommendations or hints?
    Kudos!

  34. #34 gamefly free trial 回复 | 引用 Post:2019-06-06 13:17

    What’s up, of course this post is genuinely pleasant and
    I have learned lot of things from it regarding blogging.
    thanks.

发表评论